Tuesday, February 12, 2013

How computers represent Color!!

How computer recognized color:

coding: 00 = black ....... 11 = white

1 bit color = (0, 1) only black and white image
2 bit color = (00, 01, 10, 11) it will be a 4 color image
4 bit color = (0000,...... 1111) it will have 16 colors image
8 bit color = (00000000,..... 11111111) it will have 256 color image

8 bits  = 256 colors
8 bits = 1 byte

24 bits color = 3 byte
24 bits RGB color = 8 bits of (R) x 8 bits of (G) x 8 bits of (B) 
                             = 256 color (R) x 256 color for (G) x 256 color for (B)
                             = 16.7 million possible color.... more than human eye can see


1024 byte = 1 KB
1024 KB = 1 MB
1024 MB = 1 GB
1024 GB = 1 TB