Picture.LoadFromFile

From: Douglas J. Horton (markadon_at_highstream.net)
Date: 10/28/04


Date: Thu, 28 Oct 2004 00:53:59 -0400

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



Relevant Pages

  • Re: Picture.LoadFromFile
    ... >I have Delphi 5 Enterprise. ... I have a TImage that I want to load a JPG file ... When I use the Image Editor (by double-clicking the TImage at design ...
    (alt.comp.lang.borland-delphi)
  • JPG file being kept as accessed by program
    ... I have a problem in a program in which a jpg file which is being used to load the Image of a picturebox is being kept after the load. ... If theImage Is Nothing Then ... As you can see I tried to get rid of the problem by cloning the first image and then disposing it to get rid of the "reference" to the jpg file. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Bitmap class problem
    ... > I'm using the Image.FromImagefunction to load a jpg file into a bitmap ... > class and then convert it to a lower resolution. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How do I create an icon file from a jpeg?
    ... standard file folder. ... and find one that will load a .jpg file and make a .ico file from it. ...
    (microsoft.public.office.misc)
  • Re: Black Eyed Peas
    ... it's "X-ed" in my IE, and the direct link to the ..jpg file takes ages to load and it has not loaded yet. ... Cillit BANG ...
    (rec.music.hip-hop)