tags:

views:

81

answers:

2

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
+6  A: 
   if Picture.Graphic is TJPegImage then
     ShowMessage('JPEG')
   else if Picture.Graphic is TBitmap then
     ShowMessage('Bitmap');
//etc
Serg