Page 1 of 1

Image format with IsPicture

Posted: Thu Dec 06, 2018 8:20 pm
by jPV
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...

Re: Image format with IsPicture

Posted: Sat Dec 08, 2018 5:49 pm
by airsoftsoftwair

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