Re: JPEG support Kylix 1

Ian Bell <[email protected]> Sat, 21 Dec 2002 20:27:19 +0000
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <[email protected]>
On Saturday 21 Dec 2002 4:05 pm, "Toshyro wrote:
> 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"


Try using the full path to the file.

Ian


------------------------ 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/