110 likes | 160 Views
Indexed Color vs. Direct Color (in BMP). TYWU. Direct Color. No Pallet. 32*32 Image. Direct Color. 3 Bytes Describes a Pixel. White Block 3 Rows * 32 Columns * 3 RGB = 288 Bytes. Indexed Color. Pallet with 256 Colors. Indexed Color. Illustration for White 215 = 0xD7. Indexed Color.
E N D
Direct Color • No Pallet 32*32 Image
Direct Color • 3 Bytes Describes a Pixel White Block 3 Rows * 32 Columns * 3 RGB = 288 Bytes
Indexed Color • Pallet with 256 Colors
Indexed Color • Illustration for White • 215 = 0xD7
Indexed Color • A White Block 3 Rows * 32 Columns * 1 Index No = 96 Bytes
Indexed Color • Index of Red • 180 = 0xB4
Indexed Color • A Red Block
Indexed Color • Pallet • Index 1, R=0, G=0, B=51=0x33 • Index 2, R=0, G=0, B=102=0x66
Indexed Color • Pallet • A color uses 4 Bytes Color 0, Color 1, Color 2, Color 3
File Size • Direct Color > Indexed Color