Image handling


MAllocImage
Creates an image of size 'img_w' x 'img_h' with a color depth of 'nplanes'
MReadBMPFile
Creates an image using the data in the BMP file named 'fname'
MReadTIFFFile
Creates an image using the data in the TIFF file named 'fname'
MReadJPEGFile
Creates an image using the data in the JPEG file named 'fname'
MReadGIFFile
Creates an image using the data in the GIF file named 'fname'
MWriteTIFFFile
Writes the image 'img' to a file named 'name' in tiff format
MWriteBMPFile
Writes the image 'img' to a file named 'name' in BMP format
MWriteJPEGFile
Writes the image 'img' to a file named 'name' in tiff format
void MFreeImage(MIMAGE data)
Frees an image by deallocating all used colors and memory
void MInstallImage(MIMAGE data)
Allocates all colors required by the image and makes it ready to be drawn
MUninstallImage
Deallocates image colors and frees internal resources
void MImageGetInfo(MIMAGE pmi, int *pw, int *ph, int *pnplanes)
Returns image size and color depth in the integers pointed to by 'pw', 'ph' and pnplanes'
MImageGetPixelRGB
Returns in the integers pointed to by 'pr', 'pg', 'pb' the R-G-B values of the pixel at location ('x','y') in the image 'pmi'
MImageSetPixelRGB
Sets the R-G-B components of the pixel at location ('x','y') in the image 'pmi' with the values in the parameter 'r', 'g', 'b'
MImageGetPixelIndex
Returns the index in the colormap corresponding to the image pixel at location ('x','y')
MImageSetPixelIndex
Sets the color of the pixel at location ('x','y') in image 'img' with R-G-B values of the image's colormap entry 'i'
MImageGetCMapEntry
Returns in the integers pointed to by 'pr, 'pg', 'pb' the R-G-B values of the image's colormap entry 'i'
MImageSetCMapEntry
Stores the R-G-B value formed by 'r, 'g', 'b' in the image's colormap entry 'i'

alphabetic index hierarchy of classes


MGUI Copyright 1996-1998 Vincenzo Morello

generated by doc++