You need to include the Jpeg.pas file in your unit.
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
Hi Laurence,
U wrote:
You need to include the Jpeg.pas file in your unit.
Is this a standard Delphi file? I can't find this file on my system.
I still wonder, why can TImage load a BMP or JPG image at design-time but
can't load the same JPG at run-time?
Thanks for any help,
John
"John Christenhusz" [EMAIL PROTECTED] wrote on 1/02/2001 08:22:33:
Hi Laurence,
U wrote:
You need to include the Jpeg.pas file in your unit.
Is this a standard Delphi file? I can't find this file on my system.
Try just including jpeg in the 'uses' clause of your program - I
believe it's
This is the code I use in Delphi 3. It may be different in later versions.
if ((SourceType = '.JPG') or (SourceType = '.JPEG')) then begin
JpegImage := TJpegImage.Create;
JpegImage.LoadFromFile(ImageFile);
SourceImage.Picture.Assign(JpegImage);