Image class is used to store image data that is used to create Textures.
Images can be stored in mutiple formats but on serialization images are converted to JPEG if they are opaque or to PNG if they are transparent.
GIF images are never converted to prevert animation capabilities.
Can be URL to image, ArrayBuffer for TGA data or base64 encoded data.
Compresses image data to JPEG or PNG and stores in base64 encoding.
If the image has transparency it is stored as PNG otherwise the image is stored in JPEG with 1.0 quality.
Can be used to compress data and save space.
Check if a file name refers to a supported binary image file.
True if the file refers to a supported image format.
Check if this image has alpha channel.
This checks the file encoding if the file a GIF or a PNG is assumed that the file has alpha channel.
True if the image is encoded as PNG or GIF
Load .tga file from ArrayBuffer data.
After loading data is converted to JPEG format and stored in base64 encoding.
Serialize Image resource to json.
If image is stored as URL it is converter to PNG or JPEG.