i am using delphi7/2009. how to determine the content of Tpicture? jpeg bmp png etc?
+4
A:
if (APicture.Graphic is TBitmap) then
result := true
else
result := false;
// replace TBitmap make it other format //
simply_anny
2010-08-05 02:48:46
+6
A:
if Picture.Graphic is TJPegImage then
ShowMessage('JPEG')
else if Picture.Graphic is TBitmap then
ShowMessage('Bitmap');
//etc
Serg
2010-08-05 02:53:41