Image *imgCreate (int w, int h);
void imgDestroy (Image
*image);
int imgGetWidth(Image * image);
int imgGetHeight(Image * image);
float * imgGetRGBData(Image * image);
void imgSetPixel3fv(Image *image, int x, int y, float * color);
void imgSetPixel3ubv(Image *image, int x, int y, unsigned char
*color);
void imgGetPixel3fv(Image *image, int x, int y, float *color);
void imgGetPixel3ubv(Image *image, int x, int y, unsigned char
*color);
Image * imgReadBMP(char *filename);
int imgWriteBMP(char *filename, Image * image);
Image * imgCopy(Image * image);
Image * imgGrey(Image * image);
Image * imgResize(Image * img0, int w1, int h1);
/*- implementação do tipo
Imagem */
struct image_imp {
int width;
/* largura (width) em pixels
*/
int height;
/* altura (height) em pixels */
float
*buf; /* buffer RGB */
};