You can alter the color depth of an image.
Each pixel in a raster image stores color information. The amount of information within each pixel is called depth and is measured in bits. Pixels with more depth can store more information and therefore display more colors. For instance, an 8-bit pixel can display one of 256 indexed colors (or, in the case of grayscale images, shades of gray), while a 24-bit pixel can display one of 16.7 million colors.
Type of Image | Color Depth | Available Color(s) |
---|---|---|
Bitonal | 1-Bit | 1 color |
Grayscale | 8-Bit | 256 shades of gray |
Indexed Color | 8-Bit | 256 colors |
True Color | 24-Bit | 16.7 million colors |
Changing the pixel depth is useful because it allows you to manipulate file size or add colors to the palette. Decreasing pixel depth decreases the number of colors that can be displayed, and decreases the file size of the image. Likewise, increasing pixel depth increases the number of colors that can be displayed and increases the file size.
Type of Image | Bitonal | Color | Grayscale | True Color |
---|---|---|---|---|
Bitonal | N/A | Yes | Yes | Yes |
Indexed Color | Yes | N/A | Yes | Yes |
Grayscale | Yes | N/A | N/A | Yes |
True Color | Yes | N/A | True Color | Yes |