Posted on 2003-12-09
TImage can load BMP and also JPEG.
How can I assign JPEG in TImage into a TBitmap ?
I tried like this :
ATImage := ATImage.Create(nil);
ATImage.Picture.LoadFromFile(OpenDialog1.Filename); // Load BMP or JPEG
That is working fine with BMP but not with JPEG.
Also, why TOpenPictureDialog can only load BMP ? If I see its 'filter', it contains other extension also.