Returns the raw image data.
Returns the raw palette data.
Returns the pixel order for bitdepths less than 8. Almost excusively used for indexed bitmaps. Returns null if ordering not needed.
Returns which pixel how much needs to be shifted right after a byteread.
Looks up the index on the palette, then returns the color value as a 32 bit value.
Reads a single 32bit pixel. If the image is indexed, a color lookup will be done.
Reads an index, if the image isn't indexed throws an ImageFormatException.
Writes a single pixel. ubyte: most indexed formats. ushort: all 16bit indexed formats. Any other pixel structs are used for direct color.
Raw image data. Cast the data to whatever data you need at the moment.
used for fast access of indexes
Raw palette data. Null if image is not indexed.
used for fast access of indexes
All image classes should be derived from this base. Implements some basic functionality, such as reading and writing pixels, basic data storage, and basic information. Pixeldata should be stored decompressed, but indexing should be preserved on loading with the opinion of upconverting to truecolor.