JPEG support Kylix 1
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <[email protected]> |
Hi, all
I need to manipulate JPEG images in a K1 app. I searched for
informations of how to "register" the format, but got few links about
it.
One of them tells to indicate in OnCreate of the main form (I didn't
understand if I have to repeat the code in every form that
manipulates images) the following:
Image1.Picture.RegisterFileFormat('jpg; *.jpeg','JPEG',TBitmap);
To load the image, it shows the command:
Image1.Picture.Bitmap.LoadFromFile(figura);
I did it all, but it crashes with the message:
"Project Project1 raise exception class EFOpenError with message
'Cannot open file figura1.jpg'. Process stopped. Use Step or Run to
continue"
Someone knows why the error or how to get it right?
Thanks in advance.
Toshyro
PS - I know there's some components to manipulate JPEG format, but I
want to try the (let say so) "register way in K1" before take the
other way.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/i7folB/TM
---------------------------------------------------------------------~->
-------------------------------------------------------
Forum / mailing list for Borland Kylix programmers
Our web page: http://groups.yahoo.com/group/kylixgroup
To join the forum: [email protected]
To unsubscribe: [email protected]
To post your messages: [email protected]
To contact the moderator: [email protected]
-------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/