#include <IMG_Pixmap.h>
Inheritance diagram for IMG_Pixmap:
Public Types | |
enum | PixelType { kPixelTypeRGB32 = 0, kPixelTypeRGBA32 = 1, kPixelTypeRGB24 = 5 } |
The type of pixels that are stored in this pixmap. More... | |
Public Methods | |
IMG_Pixmap () | |
Default constructor. | |
virtual | ~IMG_Pixmap () |
Destructor. | |
void* | getDataPtr ()const |
Access to image data. More... | |
TUns32 | getWidth ()const |
Access to image width. More... | |
TUns32 | getHeight ()const |
Access to image height. More... | |
void | getBounds (IMG_Rect &r)const |
Returns the bounds of the pixmap in a rectangle. More... | |
PixelType | getPixelType ()const |
Access to pixel type. More... | |
void | clamp (TInt32 &x,TInt32 &y)const |
Clamps coordinates inside (0, 0) and (width, height). More... | |
void | clamp (float &u,float &v)const |
Clamps u, v coordinates between 0 and 1. More... | |
void | getPixelAddress (float u,float v,TInt32 &x,TInt32 &y)const |
Converts (u,v) coordinates to pixel addresses. More... | |
Protected Attributes | |
void* | m_image |
Pointer to the image data. | |
TUns32 | m_width |
Width of the image in pixels. | |
TUns32 | m_height |
Height of the image in pixels. | |
TUns32 | m_rowBytes |
Number of bytes for one row in the image. | |
TUns32 | m_pixelSize |
Size in bits for one pixel. | |
PixelType | m_pixelType |
Type of pixels in this image. |
|
The type of pixels that are stored in this pixmap.
|
|
Clamps u, v coordinates between 0 and 1.
|
|
Clamps coordinates inside (0, 0) and (width, height).
|
|
Returns the bounds of the pixmap in a rectangle.
|
|
Access to image data.
|
|
Access to image height.
|
|
Converts (u,v) coordinates to pixel addresses. Assumes that (u,v) coordinates are in the [0,1] range.
|
|
Access to pixel type.
|
|
Access to image width.
|