#include <memimage.h>
Inheritance diagram for csImageMemory:
Public Methods | |
csImageMemory (int width, int height) | |
Create a blank true colour image of these dimensions. | |
csImageMemory (int width, int height, csRGBpixel *buffer, bool destroy) | |
Create an iImage interface for this true colour buffer with these dimensions. More... | |
virtual | ~csImageMemory () |
void | Clear (const csRGBpixel &colour) |
Clears image to colour. | |
virtual void | Rescale (int NewWidth, int NewHeight) |
Rescale the image to the given size. | |
virtual int | GetFormat () |
Qyery image format (see CS_IMGFMT_XXX above). | |
virtual csRGBpixel* | GetPalette () |
Get image palette (or NULL if no palette). | |
virtual UByte* | GetAlpha () |
Get alpha map for 8-bit paletted image. | |
virtual void | SetFormat (int) |
Change image format. | |
virtual iImage* | Clone () |
Create yet another image and copy this one into the new image. | |
virtual iImage* | Crop (int, int, int, int) |
Create another image holding a subimage of current image. |
It is used with dynamic textures so that the usual method of registering and preparing textures if fulfilled. 8bit images and cropping/cloning make no sense in this context.
|
Create an iImage interface for this true colour buffer with these dimensions. If destroy is set to true then the supplied buffer will be destroyed when the interfaces are. |