gedi::DynRGBAImage Class Reference

#include <RGBAImage.h>

Inherits gedi::RGBAImage.

Inheritance diagram for gedi::DynRGBAImage:

[legend]
Collaboration diagram for gedi::DynRGBAImage:
[legend]
List of all members.

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)

Detailed Description

This class extends the gedi::RGBAImage class.

This class extends the gedi::RGBAImage class by adding a save method and overloading the set color and set color key methods.


Constructor & Destructor Documentation

gedi::DynRGBAImage::DynRGBAImage (  )  [inline]

Constructor.


Member Function Documentation

gedi::UInt32 gedi::DynRGBAImage::GetColor ( gedi::UInt32  iX,
gedi::UInt32  iY 
)

Get a pixel color a coordinate iX,iY.

Parameters:
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.

Parameters:
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.

Parameters:
iColor Color.

gedi::Error32 gedi::DynRGBAImage::SaveToBitmap ( LPSTR  lpszFilename  ) 

Save image buffer to bitmap file.

Parameters:
lpszFilename File name.


The documentation for this class was generated from the following files: