illegal extension (jpg)

illegal extension (jpg)

Post by Albert » Mon, 30 Jun 2003 15:20:20



Hello

I have several jpg images I need to load to a TImage at run time

when I try

Image1.Picture.LoadFromFile('C:\Images\Image1.jpg') it gives me an error of
invalid extensions

if I use the Picture property of Image1 at design time, it allows me to load
the picture.

any way I can laod the jpg's at runtime.

best regards

Alberto

 
 
 

illegal extension (jpg)

Post by Finn Tolderlun » Mon, 30 Jun 2003 17:05:35


Put Jpeg in the uses clause.
--
Finn Tolderlund



Quote:> Image1.Picture.LoadFromFile('C:\Images\Image1.jpg') it gives me an error
of
> invalid extensions
> any way I can laod the jpg's at runtime.


 
 
 

illegal extension (jpg)

Post by Albert » Mon, 30 Jun 2003 23:08:45


Thanks, now works perfect.

Alberto


> Put Jpeg in the uses clause.
> --
> Finn Tolderlund



> > Image1.Picture.LoadFromFile('C:\Images\Image1.jpg') it gives me an error
> of
> > invalid extensions
> > any way I can laod the jpg's at runtime.