This class can be used to extract the most common colors used in images. It can open an image file in the GIF, JPEG or PNG format. Then it traverses the image and returns an array with the most used color tones. An image may be made of dots of many colors. Finding which colors are most frequently used in an image, is relatively easy. It is a matter of building an histogram. However, if you want to