Illustration of the Quantisation :

From 600x400, 32 bits image (72 dpi : dot per inch)

original Image

To 600x400, 4 bits image (16 colors)

To 600x400, 2 bits image (4 colors)