Image format with IsPicture
Image format with IsPicture
Could IsPicture() return the image format also in the table with other information? I'd like to check if images I let user select are JPEG or PNG, etc... I have couple cases in my mind where I'd like to use that information. Guessing from the extension isn't reliable always...
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Image format with IsPicture
Code: Select all
- New: The table returned by IsPicture() now contains a new field named "Format" which will be set to
the image's format; this can be #IMGFMT_BMP, #IMGFMT_PNG, #IMGFMT_JPEG, #IMGFMT_ILBM, #IMGFMT_GIF,
#IMGFMT_TIFF, #IMGFMT_NATIVE, or #IMGFMT_PLUGIN