#include <mi32/mg2mem32rgba.h>
Inheritance diagram for MGD::DEVICE_MEM32RGBA:

Public Member Functions | |
| ERRVALUE | Create (INT32 height, INT32 width, COLORSPACE ColorSpace=COLORSPACE_A8_R8_G8_B8) |
| DEVICE_MEM32RGBA () | |
| virtual | ~DEVICE_MEM32RGBA () |
Protected Member Functions | |
| UINT8 * | DetachImageBuffer () |
Private Member Functions | |
| virtual CONTEXT * | v_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.
|
|
||||||||||||||||
|
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. |
|
|
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. |
|
|
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. |
|
||||||||||||||||||||
|
Fill a horizontal span. Many of the default method implementations call this to do all the work Reimplemented from MGD::DEVICE_MEM32. |
|
|
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. |
|
||||||||||||
|
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. |
|
|
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. |
1.3.8-20040913