MGD::DEVICE_MEM32RGBA Class Reference

#include <mi32/mg2mem32rgba.h>

Inheritance diagram for MGD::DEVICE_MEM32RGBA:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ERRVALUE Create (INT32 height, INT32 width, COLORSPACE ColorSpace=COLORSPACE_A8_R8_G8_B8)
 DEVICE_MEM32RGBA ()
virtual ~DEVICE_MEM32RGBA ()

Protected Member Functions

UINT8DetachImageBuffer ()

Private Member Functions

virtual CONTEXTv_CreateContext ()
virtual ERRVALUE v_FillSpan (MGD::CONTEXT *vgc, INT32 x1, INT32 x2, INT32 y)
virtual PIXEL v_GetColorPixel (const COLOR &color)
virtual void v_GetPixelColor (PIXEL pixel, COLOR &color) const
virtual ERRVALUE v_ScanColorUse (HISTORGB &historgb)

Constructor & Destructor Documentation

MGD::DEVICE_MEM32RGBA::DEVICE_MEM32RGBA  ) 
 

constructor

virtual MGD::DEVICE_MEM32RGBA::~DEVICE_MEM32RGBA  )  [virtual]
 

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_MEM32RGBA::Create INT32  height,
INT32  width,
COLORSPACE  ColorSpace = COLORSPACE_A8_R8_G8_B8
 

Create a 32-bit device with alpha channel If the ColorSpace is provided, it must be one of the following: COLORSPACE_A8_R8_G8_B8 (the default), COLORSPACE_R8_G8_B8_A8 COLORSPACE_A8_B8_G8_R8 COLORSPACE_B8_G8_R8_A8 Any other colorspace will return an error.

Reimplemented from MGD::DEVICE_MEM32.

UINT8* MGD::DEVICE_MEM32RGBA::DetachImageBuffer  )  [inline, protected]
 

Return a pointer to a buffer holding the frame buffer and detach the responsibilty of the buffer from this class.

Reimplemented from MGD::DEVICE_MEM32.

Definition at line 67 of file mg2mem32rgba.h.

virtual CONTEXT* MGD::DEVICE_MEM32RGBA::v_CreateContext  )  [private, virtual]
 

Create a GC for drawing.

Derived classes may override this and make it return anything derived from MGD_GC. MGD_GC's constructor is private, so this is the only way for calling code to create a GC.

Reimplemented from MGD::DEVICE_MEM32.

virtual ERRVALUE MGD::DEVICE_MEM32RGBA::v_FillSpan MGD::CONTEXT vgc,
INT32  x1,
INT32  x2,
INT32  y
[private, virtual]
 

Fill a horizontal span.

Many of the default method implementations call this to do all the work

Reimplemented from MGD::DEVICE_MEM32.

virtual PIXEL MGD::DEVICE_MEM32RGBA::v_GetColorPixel const COLOR color  )  [private, virtual]
 

Given a color, return the Pixel value that matches (or is as close possible).

This should NOT take ICM into account. The context will have already translated the color through the ICM transform (if any) before calling this function. This method is not const because some derived classes may update a color map or something in the process.

Reimplemented from MGD::DEVICE.

virtual void MGD::DEVICE_MEM32RGBA::v_GetPixelColor PIXEL  pixel,
COLOR color
const [private, virtual]
 

Given a pixel value, return the color it represents.

This should NOT take ICM into account. The context will translate the color back through the inverse ICM transform (if any)

Reimplemented from MGD::DEVICE.

virtual ERRVALUE MGD::DEVICE_MEM32RGBA::v_ScanColorUse HISTORGB historgb  )  [private, virtual]
 

Scan for color use.

This could use the version from DEVICE_MEM32, but this version skips all totally transparent pixels.

Reimplemented from MGD::DEVICE_MEM32.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:39 2004 for TNTsdk by  doxygen 1.3.8-20040913