PIL currently supports the following image data formats:
RGB - 24 bit colour, 8 bits for Red, 8 bits for Green, 8 bits for Blue.
HSV - Hue, Saturation and Value (Intensity);
GRAY - 8 bit intensity gray scale image data.
The following information is encapsulated into a structure Image.
int width;Obviously, width and height are the image dimensions.
unsigned char *data;