B4J Library Simple Image Info - Image Size and MIME type

Here is a port of a class found here: http://blog.jaimon.co.uk/simpleimageinfo/SimpleImageInfo.java.html
that reads the size info from a file for GIF, JPG, PNG, BMP and TIFF files. Useful so you can determine whether to load the file or a Sampled version without having to load it fully first.

I haven't tried it, but I think it should work for B4a as well.
 

Attachments

  • GetImageSize.zip
    408.4 KB · Views: 438
Top