#include <RGBAImage.h>
Inherits gedi::RGBAImage.
Inheritance diagram for gedi::DynRGBAImage:
Public Member Functions | |
DynRGBAImage () | |
gedi::UInt32 | GetColor (gedi::UInt32 iX, gedi::UInt32 iY) |
void | SetColor (gedi::UInt32 iX, gedi::UInt32 iY, gedi::UInt32 iColor) |
void | SetColorKey (gedi::UInt32 iColor) |
gedi::Error32 | SaveToBitmap (LPSTR lpszFilename) |
This class extends the gedi::RGBAImage class by adding a save method and overloading the set color and set color key methods.
gedi::DynRGBAImage::DynRGBAImage | ( | ) | [inline] |
Constructor.
gedi::UInt32 gedi::DynRGBAImage::GetColor | ( | gedi::UInt32 | iX, | |
gedi::UInt32 | iY | |||
) |
Get a pixel color a coordinate iX,iY.
iX | X coordinate. | |
iY | Y coordinate. Color, if alpha (lower 8-bits) == 0, is transparent. |
Reimplemented from gedi::RGBAImage.
void gedi::DynRGBAImage::SetColor | ( | gedi::UInt32 | iX, | |
gedi::UInt32 | iY, | |||
gedi::UInt32 | iColor | |||
) |
Set a pixel color a coordinate iX,iY.
iX | X coordinate. | |
iY | Y coordinate. | |
iColor | Color. |
void gedi::DynRGBAImage::SetColorKey | ( | gedi::UInt32 | iColor | ) |
Set the color key according to the RGB parameters.
This method sets the alpha component to zero for every pixel which is the same as the color key. As such, only the background color shows.
iColor | Color. |
gedi::Error32 gedi::DynRGBAImage::SaveToBitmap | ( | LPSTR | lpszFilename | ) |
Save image buffer to bitmap file.
lpszFilename | File name. |