Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Picture.LoadFromFile

0 views
Skip to first unread message

Douglas J. Horton

unread,
Oct 28, 2004, 12:53:59 AM10/28/04
to
I have Delphi 5 Enterprise. I have a TImage that I want to load a JPG file
into. When I use the Image Editor (by double-clicking the TImage at design
time) I can load the file. If I try "Image1.Picture.LoadFromFile
('MyFile.jpg'); I get an error stating that .jpg is un unrecognized
extension. How can I get the TImage to display JPG files?

Thanks in advance.

--Doug


frederick

unread,
Oct 28, 2004, 3:47:35 AM10/28/04
to
"Douglas J. Horton" <mark...@highstream.net> wrote in message
news:10o0ur3...@corp.supernews.com...

Put JPEG in your uses clause.


Douglas J. Horton

unread,
Oct 28, 2004, 10:08:04 AM10/28/04
to
"frederick" <nom...@nomail.com> wrote in message
news:1098949681.563749@ftpsrv1...

>
> Put JPEG in your uses clause.

Worked great. Thanks a lot!!!!!!!!!


0 new messages