MIMAGE MAllocImage (int img_w, int img_h, int nplanes)

Creates an image of size 'img_w' x 'img_h' with a color depth of 'nplanes'

Documentation

Creates an image of size 'img_w' x 'img_h' with a color depth of 'nplanes'. The image pixels can be written via MImageSetPixelRGB() for 24 planes images and via MImageSetCMapEntry() and then MImageSetPixelIndex() for palette based images (2,4,8 planes). Once the image is installed via MInstallImage(), it can be drawn in drawarea objects or it can be set as button image. When no longer needed, the image can be freed using MFreeImage().

alphabetic index hierarchy of classes


MGUI Copyright 1996-1998 Vincenzo Morello

generated by doc++