Color code

Information Processing > Color code

Every image is made up of pixels (or picture elements). In black and white images, each pixel is black or gray or white. In color images, each pixel has a single color. To specify the color, each pixel has a binary number made up of binary bits. The number of bits for each pixel is called the "bit depth" of the image. Typically, images have bit depths of 1, 8, 16, 24, 32 or even 48.

1-bit

Black and white images have 1-bit color coding.

8-bit

If you convert color images into gray scale, you convert it from 16 or 24-bit into 8-bit. 8-bit color coding allows 256 different colors.

16-bit

A 16-bit color coding allows 65,536 different colors

24-bit

A 24-bit color coding allows 16,777,216 different colors.

Information Processing > Color code