Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csImageMemory Class Reference

This class represents a block of memory in the true colour format only. More...

#include <memimage.h>

Inheritance diagram for csImageMemory:

csImageFile iImage iBase List of all members.

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 csRGBpixelGetPalette ()
 Get image palette (or NULL if no palette).

virtual uint8* GetAlpha ()
 Get alpha map for 8-bit paletted image.

virtual void SetFormat (int)
 Change image format.

virtual iImageClone ()
 Create yet another image and copy this one into the new image.

virtual iImageCrop (int, int, int, int)
 Create another image holding a subimage of current image.


Detailed Description

This class represents a block of memory in the true colour format only.

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.


Constructor & Destructor Documentation

csImageMemory::csImageMemory ( int width,
int height,
csRGBpixel * buffer,
bool destroy )
 

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.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000