And I'm getting it from the following:
Image1.Picture.LoadFromFile('test.jpg'); where test.jpg exists and can
be opened by other software.
I'm using Delphi 7
Any ideas?
--
Sounds like the usual beginners error.
You forgot to add jpeg to the uses clause.
--
Finn Tolderlund
http://www.tolderlund.eu/delphi/
> I'm getting the message: ImageProject.exe raised exception
> class EInvalidGraphic with message 'Unknown picture file
> extension (.jpg)'
Did you include 'Jpeg' into your uses clause? The VCL does NOT have JPEG
support enabled by default. You have to include that unit into your code to
enable it.
Gambit