2D bitmap. Each pixel is coded with a fixed number of bytes.
Pixel sizes: ubyte[1] => grayscale ubyte[2] => grayscale + alpha ubyte[3] => RGB ubyte[4] => RGBA
Access a given pixel with Bitmap[x, y]
// Rotate the image by increments of 90° counter clockwise Serialize to a BMP file. Alpha data is lost.
Serialize to a PNG file
See Implementation
2D bitmap. Each pixel is coded with a fixed number of bytes.
Pixel sizes: ubyte[1] => grayscale ubyte[2] => grayscale + alpha ubyte[3] => RGB ubyte[4] => RGBA