csImageBase Class Reference
[Graphics]
Base class for iImage implementations.
More...
#include <csgfx/imagebase.h>
Inheritance diagram for csImageBase:

Public Member Functions | |
virtual const uint8 * | GetAlpha () |
Get alpha map for 8-bit paletted image. | |
virtual int | GetDepth () const |
Query image depth (only sensible when the image type is csimg3D). | |
virtual csImageType | GetImageType () const |
Get the type of the contained image. | |
virtual void | GetKeycolor (int &r, int &g, int &b) const |
Get the keycolour stored with the image. | |
virtual void | GetKeyColor (int &, int &, int &) const |
Get the keycolour stored with the image. | |
virtual csRef< iImage > | GetMipmap (uint num) |
Return a precomputed mipmap. | |
virtual const char * | GetName () const |
Get image file name. | |
virtual const csRGBpixel * | GetPalette () |
Get image palette (or 0 if no palette). | |
virtual csRef< iDataBuffer > | GetRawData () const |
Get the raw data of the image (or 0 if raw data is not provided). | |
virtual const char * | GetRawFormat () const |
Get a string identifying the format of the raw data of the image (or 0 if raw data is not provided). | |
virtual csRef< iImage > | GetSubImage (uint num) |
Query a sub image. | |
virtual bool | HasKeycolor () const |
Check if image has a keycolour stored with it. | |
virtual bool | HasKeyColor () const |
Check if image has a keycolour stored with it. | |
virtual uint | HasMipmaps () const |
Returns the number of mipmaps contained in the image (in case there exist any precalculated mipmaps), in addition to the original image. | |
virtual uint | HasSubImages () const |
Returns the number of sub images, in addition to this image. | |
virtual void | SetName (const char *iName) |
Set image file name. | |
virtual | ~csImageBase () |
Protected Member Functions | |
csImageBase () | |
Create new instance. | |
Protected Attributes | |
char * | fName |
Name of the image file. |
Detailed Description
Base class for iImage implementations.Cannot be instantiated itself.
Definition at line 42 of file imagebase.h.
Constructor & Destructor Documentation
|
Create new instance.
Definition at line 49 of file imagebase.h. |
Member Function Documentation
|
Get alpha map for 8-bit paletted image. RGBA images contains alpha within themself. If image has no alpha map, or the image is in RGBA format, this function will return 0. Implements iImage. Reimplemented in csImageCubeMapMaker, csImageVolumeMaker, csImageMemory, and csCommonImageFile. Definition at line 73 of file imagebase.h. |
|
Query image depth (only sensible when the image type is csimg3D).
Implements iImage. Reimplemented in csImageVolumeMaker, and csImageMemory. Definition at line 61 of file imagebase.h. |
|
Get the type of the contained image.
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageVolumeMaker, and csImageMemory. Definition at line 89 of file imagebase.h. References csimg2D. |
|
Get the keycolour stored with the image.
Implements iImage. Definition at line 80 of file imagebase.h. References GetKeyColor(). |
|
Get the keycolour stored with the image.
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageMemory, and csCommonImageFile. Definition at line 79 of file imagebase.h. Referenced by GetKeycolor(). |
|
Return a precomputed mipmap. num specifies which mipmap to return; 0 returns the original image, num <= the return value of HasMipmaps() returns that mipmap. Implements iImage. Reimplemented in csImageCubeMapMaker, and csImageMemory. Definition at line 84 of file imagebase.h. |
|
Get image file name.
Implements iImage. Reimplemented in csImageCubeMapMaker, and csImageVolumeMaker. Definition at line 67 of file imagebase.h. References fName. |
|
Get image palette (or 0 if no palette).
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageVolumeMaker, csImageMemory, csScreenShot, and csCommonImageFile. Definition at line 72 of file imagebase.h. |
|
Get the raw data of the image (or 0 if raw data is not provided).
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageVolumeMaker, and csCommonImageFile. Definition at line 88 of file imagebase.h. |
|
Get a string identifying the format of the raw data of the image (or 0 if raw data is not provided).
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageVolumeMaker, and csCommonImageFile. Definition at line 87 of file imagebase.h. |
|
Query a sub image. A value of 0 for num returns the original image, a value larger or equal than the return value of HasSubImages() returns that sub image, any other value returns 0. Implements iImage. Reimplemented in csImageCubeMapMaker. Definition at line 91 of file imagebase.h. |
|
Check if image has a keycolour stored with it.
Implements iImage. Definition at line 76 of file imagebase.h. References HasKeyColor(). |
|
Check if image has a keycolour stored with it.
Implements iImage. Reimplemented in csImageCubeMapMaker, csImageMemory, and csCommonImageFile. Definition at line 75 of file imagebase.h. Referenced by HasKeycolor(). |
|
Returns the number of mipmaps contained in the image (in case there exist any precalculated mipmaps), in addition to the original image. 0 means there are no precomputed mipmaps. Implements iImage. Reimplemented in csImageCubeMapMaker, and csImageMemory. Definition at line 83 of file imagebase.h. |
|
Returns the number of sub images, in addition to this image. Subimages are usually used for cube map faces. Implements iImage. Reimplemented in csImageCubeMapMaker. Definition at line 90 of file imagebase.h. |
|
Set image file name.
Implements iImage. Reimplemented in csImageCubeMapMaker, and csImageVolumeMaker. Definition at line 63 of file imagebase.h. References csStrNew(), and fName. |
Member Data Documentation
|
Name of the image file.
Definition at line 47 of file imagebase.h. Referenced by GetName(), SetName(), and ~csImageBase(). |
The documentation for this class was generated from the following file:
- csgfx/imagebase.h
Generated for Crystal Space by doxygen 1.4.6