#include <mi32/mg2rastc.h>
Inheritance diagram for MGD::DEVICE_RASTER_COLORMAPPED:

Public Types | |
| enum | COLORPOLICY { COLORPOLICY_UseClosest = 0, COLORPOLICY_AddColor = 1, COLORPOLICY_Transparent = 2, COLORPOLICY_Fallback = 3 } |
Public Member Functions | |
| ERRVALUE | Create (const RVC::OBJITEM &ObjItem, RVC::RASTER::MAKEPARMS &MakeParms, const SIMPLE_ARRAY< COLOR > &cmap, const char *Source=0) |
| DEVICE_RASTER_COLORMAPPED () | |
| ERRVALUE | Open (const RVC::OBJITEM &ObjItem) |
| void | SetColorPolicy (COLORPOLICY policy) |
| void | SetFallbackPixel (PIXEL pixel) |
| virtual | ~DEVICE_RASTER_COLORMAPPED () |
Private Member Functions | |
| virtual CONTEXT * | v_CreateContext () |
| virtual ERRVALUE | v_Flush () |
| virtual PIXEL | v_GetColorPixel (const COLOR &color) |
| virtual COLORSPACE | v_GetColorSpace () const |
| virtual void | v_GetPixelColor (PIXEL pixel, COLOR &color) const |
|
|
How to deal with SetColor() if the color isn't in the colormap.
Definition at line 49 of file mg2rastc.h. |
|
|
Construct a colormapped raster device. After constructing, you should call Create() |
|
|
Destructor.
|
|
||||||||||||||||||||
|
Create a raster to draw into To draw into an existing raster, call Open.
|
|
|
Open a raster to draw into. To draw into an existing raster, call Open Reimplemented from MGD::DEVICE_RASTER_GRAY8. |
|
|
Definition at line 79 of file mg2rastc.h. |
|
|
Set the pixel value to fallback to if using COLORPOLICY_Fallback.
Definition at line 86 of file mg2rastc.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_RASTER_GRAY8. |
|
|
Called by WritePixArray just before it starts writing Colormapped derived class can use this to update colormap.
Reimplemented from MGD::DEVICE_RASTER_GRAY8. |
|
|
Given a color, return the pixel value that matches or is as close as possible.
Reimplemented from MGD::DEVICE_MEM8G. |
|
|
We fake it and look up the color later Reimplemented from MGD::DEVICE_MEM8G. Definition at line 119 of file mg2rastc.h. |
|
||||||||||||
|
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_MEM8G. |
1.3.8-20040913