#include <IMG_PixmapRGBA32.h>
Inheritance diagram for IMG_PixmapRGBA32:
Public Types | |
typedef TUns32 | TPixelRGBA32 |
The pixel type in this pixmap. | |
typedef TPixelRGBA32* | TPixelPtr |
The pixel pointer type of this pixmap. | |
Public Methods | |
IMG_PixmapRGBA32 (TUns32 width,TUns32 height) | |
Constructor. More... | |
IMG_PixmapRGBA32 (void *image,TUns32 width,TUns32 height,TUns32 rowBytes) | |
Constructor. More... | |
virtual void | fillRect (const IMG_Rect &r,const IMG_ColorRGB &c) |
Fills the rectangle given with the color given. More... | |
virtual void | fillRect (const IMG_Rect &r,const IMG_ColorRGBA &c) |
Fills the rectangle given with the color given. More... | |
virtual void | setPixmap (const IMG_PixmapRGBA32 &src,const IMG_Rect &srcBnds,const IMG_Rect &destBnds) |
Pastes an area of a pixmap into this pixmap. More... | |
virtual void | blendPixmap (const IMG_PixmapRGBA32 &src,const IMG_Rect &srcBnds,const IMG_Rect &destBnds) |
Blends an area of a pixmap into this pixmap. More... | |
Public Attributes | |
IMG_MemPtr<TPixelRGBA32> | m_mem |
"Save" memory pointer. | |
Protected Methods | |
TPixelPtr | getPixelPtr (TUns32 x,TUns32 y)const |
Returns pointer to the pixel. More... | |
TPixelRGBA32 | getPixelValue (const IMG_ColorRGBA &c)const |
Returns the pixel value of a color. More... | |
void | getColor (TPixelRGBA32 p,IMG_ColorRGBA &c)const |
Returns the color of from a pixel value. More... |
A pixmap with 24 bits per pixel in ABGR format. Provides methods to fill rectangular areas in this image with a color. Provides methods to paste or blend other pixmaps into this pixmap.
|
Constructor. Creates a new pixmap of the kPixelTypeRGBA32 type with the requested dimensions.
|
|
Constructor. Creates a new pixmap of the kPixelTypeRGBA32 from a pointer to image data. The image data will not be freed upon destruction of this object. The owner of this object is reponsible for that.
|
|
Blends an area of a pixmap into this pixmap. Blends an area of the given pixmap centered at the given coordinates into this pixmap. The alpha information in the given image is used to blend. Performs a bounds check.
|
|
Fills the rectangle given with the color given. Sets the alpha values from the color. Performs a bounds check.
|
|
Fills the rectangle given with the color given. Retains the alpha values. Performs a bounds check.
|
|
Returns the color of from a pixel value.
|
|
Returns pointer to the pixel. Returns a pointer of TPixelPtr type to the pixel at the requested coordinates. Does not perform a bounds check!
|
|
Returns the pixel value of a color.
|
|
Pastes an area of a pixmap into this pixmap. Pastes an area of the given pixmap centered at the given coordinates into this pixmap. Ignores the alpha information, this is pasted as well. Performs a bounds check.
|