UPD: Use built-in TPicture method to determine graphic file

This commit is contained in:
Alexander Koblov 2012-06-02 13:24:06 +00:00
commit bf627d8e23

View file

@ -1710,9 +1710,7 @@ begin
fsBitmap.Free;
end;
{$ENDIF}
Result:=(sExt='.bmp') or (sExt='.xpm') or (sExt='.png') or
(sExt='.jpg') or (sExt='.jpeg') or (sExt='.ico') or (sExt='.icns') or
(sExt='.ddw') or (sExt='.tga') or (sExt='.cur') or (sExt='.gif');
Result:= Image.Picture.FindGraphicClassWithFileExt(sExt, False) <> nil;
end;
// Adjust Image size (width and height) to sboxImage size