Registers support for a new image format; useful for certain extensions.
Returns detected MIME type of the given image buffer. Note that for image formats with support provided by extensions, the extension must be registered with an I/O class before it can be detected by ImageUtils.
Returns the dimensions of the image.
Returns a conservative estimate of the number of channels in the image. For some image formats, the method may return 4 indicating the possibility of an alpha channel, without the ability to guarantee that an alpha channel is present.
Returns a conservative estimate of the GPU memory required by this image.
Returns the preferred file extension for the given MIME type.
Returns the MIME type for the given file extension.
Returns the MIME type for the given file extension.
Returns a conservative estimate of the number of channels in the image. For some image formats, the method may return 4 indicating the possibility of an alpha channel, without the ability to guarantee that an alpha channel is present.
Returns detected MIME type of the given image buffer. Note that for image formats with support provided by extensions, the extension must be registered with an I/O class before it can be detected by ImageUtils.
Returns the dimensions of the image.
Returns a conservative estimate of the GPU memory required by this image.
Returns the preferred file extension for the given MIME type.
Registers support for a new image format; useful for certain extensions.
Made by Don McCurdy • Documented with greendoc • © 2023 MIT License
ImageUtils
Common utilities for working with image data.