110 likes | 161 Views
Learn the differences between Indexed Color and Direct Color in BMP images. Explore how pixel colors are described and differentiate the color pallets. Discover the file size implications of using Direct Color over 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