RE: [DUG]: TImage and JPG files

2001-01-31 Thread Laurence Bevan
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]

RE: [DUG]: TImage and JPG files - 2

2001-01-31 Thread John Christenhusz
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

Re: RE: [DUG]: TImage and JPG files - 2

2001-01-31 Thread Corey Murtagh
"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

RE: [DUG]: TImage and JPG files

2001-01-30 Thread Patrick Dunford
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);