#include <gdrawcon.h>
Inheritance diagram for GDrawContext:
Public Member Functions | |
GDrawContext () | |
Constructor. Most inherited classes will use this one. It does nothing. | |
virtual | ~GDrawContext () |
Destructor. Most inherited classes will use this one. It does nothing. | |
virtual BOOL | Init ()=0 |
Declares a preference that allows you to clear memory in delete(). | |
virtual eError | GetLastError ()=0 |
virtual INT32 | GetGraduationTableSize ()=0 |
virtual INT32 | GetGraduationTableLength ()=0 |
virtual INT32 | GetLongGraduationTableSize ()=0 |
virtual INT32 | GetLongGraduationTableLength ()=0 |
virtual INT32 | GetTransparentGraduationTableSize ()=0 |
virtual INT32 | GetTransparentGraduationTableLength ()=0 |
virtual INT32 | GetLongTransparentGraduationTableSize ()=0 |
virtual INT32 | GetLongTransparentGraduationTableLength ()=0 |
virtual void | SetStackLimit (LPVOID)=0 |
virtual void | SetStackSize (DWORD)=0 |
virtual BOOL | SetupBitmap (INT32 Width, INT32 Height, INT32 Depth, LPBYTE Bits, DWORD Format=2, BOOL DoBiCompression=FALSE)=0 |
virtual BOOL | SetBitmap (CONST LPBITMAPINFOHEADER BitmapInfo, CONST LPBYTE Bitmap, DWORD BitmapFormat=2)=0 |
virtual BOOL | SetMatrix (GMATRIX *)=0 |
virtual void | SetAntialiasFlag (BOOL)=0 |
virtual void | SetAntialiasQualityFlag (BOOL)=0 |
virtual void | SetTileSmoothingFlag (BOOL)=0 |
virtual void | SetTileFilteringFlag (BOOL)=0 |
virtual void | SetMaxFilterSize (UINT32)=0 |
virtual BOOL | Sharpen (INT32)=0 |
virtual BOOL | Blur (INT32)=0 |
virtual void | SetHintingFlag (BOOL)=0 |
virtual void | SetFlatness (DWORD)=0 |
virtual BOOL | SetMiterLimit (DWORD)=0 |
virtual BOOL | SetMatrixIntFlag (BOOL)=0 |
virtual BOOL | SetDashAdjustmentFlag (BOOL)=0 |
virtual void | TransformPath (LPPOINT, LPPOINT, DWORD, GMATRIX *)=0 |
virtual INT32 | MaxScale (CONST GMATRIX *Matrix, CONST RECT *BBox)=0 |
virtual void | SetHalftoneOrigin (DWORD, DWORD)=0 |
virtual BOOL | SetDitherStyle (DitherStyle Style=DITHER_GREY_ORDERED)=0 |
virtual BOOL | AddToGraduationTable (COLORREF, BOOL, GraduationTable *, DWORD)=0 |
virtual BOOL | BuildGraduationTable (COLORREF, COLORREF, DWORD, GraduationTable *)=0 |
virtual BOOL | BuildTransparencyTable (DWORD, DWORD, TransparentGradTable *)=0 |
virtual BOOL | SetColour (COLORREF)=0 |
virtual BOOL | SetSolidColour (COLORREF, DWORD BPP=0, DWORD Format=2)=0 |
virtual BOOL | SetWordColour (DWORD)=0 |
virtual BOOL | SetTransparency (COLORREF, TransparencyEnum)=0 |
virtual BOOL | ConvertBitmap (LPBITMAPINFOHEADER, LPBYTE, LPBITMAPINFOHEADER, LPBYTE, INT32)=0 |
virtual const LOGPALETTE * | SelectPalette (INT32)=0 |
virtual BOOL | SetInvert (DWORD)=0 |
virtual BOOL | InitialiseWithPalette (const LOGPALETTE *)=0 |
virtual CONST BYTE * | ReturnBrush ()=0 |
virtual CONST BYTE * | ReturnBrushRGB ()=0 |
virtual BOOL | SetSeparationTables (const BGR *CyanSepTable=NULL, const BGR *MagentaSepTable=NULL, const BGR *YellowSepTable=NULL, const BGR *BlackSepTable=NULL, const BYTE *UnderColourRemovalTable=NULL, const BYTE *BlackGenerationTable=NULL)=0 |
virtual BOOL | SetBitmapConversionTable (const BGR *BitmapConversionTable=NULL)=0 |
virtual BOOL | SetGraduation (DWORD Style, CONST GraduationTable *Table, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC)=0 |
virtual BOOL | SetTransparentGraduation (DWORD Style, CONST TranspGradTable *Table, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC)=0 |
virtual BOOL | SetGraduation4 (DWORD Style, CONST GraduationTable *Table, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | SetTransparentGraduation4 (DWORD Style, CONST TranspGradTable *Table, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | SetBias (UINT32, double)=0 |
virtual BOOL | SetGain (UINT32, double)=0 |
virtual BOOL | SetBrightness (double)=0 |
virtual BOOL | SetContrast (double)=0 |
virtual BOOL | SetGamma (double)=0 |
virtual BOOL | SetPostGamma (double)=0 |
virtual BOOL | SetSaturation (double)=0 |
virtual BOOL | SetContone (UINT32, COLORREF=0x000000, COLORREF=0xFFFFFF)=0 |
virtual BOOL | SetInputRange (UINT32, BYTE=0x00, BYTE=0xFF)=0 |
virtual BOOL | SetOutputRange (UINT32, BYTE=0x00, BYTE=0xFF)=0 |
virtual BOOL | SetBitmapFill (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, COLORREF, LPRGBQUAD, LPBYTE, LPBYTE, LPBYTE, LPBYTE, DWORD=0)=0 |
virtual BOOL | SetTransparentBitmapFill (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, COLORREF, BYTE *=NULL, DWORD=0)=0 |
virtual BOOL | SetPerspectiveBitmapFill (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, COLORREF, LPRGBQUAD, LPBYTE, LPBYTE, LPBYTE, LPBYTE, DWORD)=0 |
virtual BOOL | SetPerspectiveTransparentBitmapFill (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, COLORREF, BYTE *, DWORD)=0 |
virtual BOOL | SetTransparencyLookupTable (CONST BYTE *Table)=0 |
virtual BOOL | PlotBitmap (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, LPRGBQUAD, LPBYTE, LPBYTE, LPBYTE, LPBYTE)=0 |
virtual BOOL | PlotPerspectiveBitmap (LPBITMAPINFOHEADER, LPBYTE, DWORD, LPPOINT, LPRGBQUAD, LPBYTE, LPBYTE, LPBYTE, LPBYTE)=0 |
virtual BOOL | StrokePath (LPPOINT, const BYTE *, UINT32, BOOL, DWORD, CapStyles, JoinStyles, const DashType *)=0 |
virtual BOOL | FillPath (LPPOINT, const BYTE *, UINT32, DWORD)=0 |
virtual BOOL | FillRectangle (LPRECT)=0 |
virtual BOOL | FillPoint (LPPOINT)=0 |
virtual INT32 | StrokePathToPath (CONST POINT *IPoints, CONST BYTE *ITypes, DWORD ILength, POINT *OPoints, BYTE *OTypes, DWORD OLength, BOOL Close, DWORD LineWidth, CapStyles LineCaps, JoinStyles LineJoin, CONST DashType *Dash)=0 |
virtual INT32 | CalcStrokeBBox (CONST POINT *IPoints, CONST BYTE *ITypes, DWORD ILength, LPRECT Rect, BOOL Close, DWORD LineWidth, CapStyles LineCaps, JoinStyles LineJoin, CONST DashType *Dash)=0 |
virtual BOOL | HintPath (CONST POINT *Points, CONST BYTE *Types, UINT32 Length, BOOL Close, DWORD LineWidth)=0 |
virtual INT32 | MakeUnclippedRegion (CONST POINT *Points, CONST BYTE *Types, UINT32 Length, DWORD Winding, REGION *ORegion, UINT32 OLength)=0 |
virtual BOOL | FillRegion (CONST REGION *Region, CONST POINT *Offset)=0 |
virtual INT32 | SetBevelContrast (UINT32 nContrast)=0 |
virtual INT32 | SetBevelLightness (UINT32 nContrast)=0 |
virtual INT32 | SetBevelDarkness (UINT32 nContrast)=0 |
virtual INT32 | TranslateBevelValue (BYTE nIndex, BYTE Colour)=0 |
virtual BOOL | IsOverlap (LPPOINT, const BYTE *, UINT32, DWORD)=0 |
virtual BOOL | GetStatistics (LPPOINT, const BYTE *, UINT32, DWORD, STATISTICS *)=0 |
virtual BOOL | CalcBBox (LPPOINT, const BYTE *, DWORD, LPRECT, BOOL)=0 |
virtual INT32 | MakeRegion (LPPOINT, const BYTE *, UINT32, DWORD, REGION *, UINT32)=0 |
virtual BOOL | ClipRectangle (LPRECT)=0 |
virtual BOOL | DeviceClipRectangle (LPRECT)=0 |
virtual BOOL | GetDeviceClipRectangle (LPRECT)=0 |
virtual BOOL | ClipRegion (const REGION *)=0 |
virtual const REGION * | GetClipRegion ()=0 |
virtual void | ClearChangedBBox ()=0 |
virtual BOOL | GetChangedBBox (LPRECT)=0 |
virtual BOOL | SetChangedBBox (LPRECT)=0 |
virtual BOOL | SetConversionPalette (PLOGPALETTE)=0 |
virtual COLORREF | ConvertHSVtoRGB (COLORREF)=0 |
virtual COLORREF | ConvertRGBtoHSV (COLORREF)=0 |
virtual DWORD | GetMaxBitmapWidth (void)=0 |
virtual DWORD | GetMaxBitmapDepth (void)=0 |
virtual BOOL | Set3WayGraduation (DWORD Style, COLORREF ColourA, COLORREF ColourB, COLORREF ColourD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointD)=0 |
virtual BOOL | Set3WayGraduation4 (DWORD Style, COLORREF ColourA, COLORREF ColourB, COLORREF ColourD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | Set4WayGraduation (DWORD Style, COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointD)=0 |
virtual BOOL | Set4WayGraduation4 (DWORD Style, COLORREF ColourA, COLORREF ColourB, COLORREF ColourC, COLORREF ColourD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | SetTransparent3WayGraduation (DWORD Style, BYTE ValueA, BYTE ValueB, BYTE ValueD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointD)=0 |
virtual BOOL | SetTransparent3WayGraduation4 (DWORD Style, BYTE ValueA, BYTE ValueB, BYTE ValueD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | SetTransparent4WayGraduation (DWORD Style, BYTE ValueA, BYTE ValueB, BYTE ValueC, BYTE ValueD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointD)=0 |
virtual BOOL | SetTransparent4WayGraduation4 (DWORD Style, BYTE ValueA, BYTE ValueB, BYTE ValueC, BYTE ValueD, CONST POINT *PointA, CONST POINT *PointB, CONST POINT *PointC, CONST POINT *PointD)=0 |
virtual BOOL | SaveContext (GCONTEXT *Context)=0 |
virtual BOOL | RestoreContext (CONST GCONTEXT *Context)=0 |
virtual BOOL | SetDefaultBitmapParameters () |
Sets the default bitmap parameters so a bitmap plot afterwards does not depend on the prior GDrawContext state. |
With the exception of the ConvertBitmap function, this class could be put in the kernel. Maybe it should. Perhaps. Ish.
Definition at line 128 of file gdrawcon.h.
|
Constructor. Most inherited classes will use this one. It does nothing.
Definition at line 120 of file gdrawcon.cpp.
|
|
Destructor. Most inherited classes will use this one. It does nothing.
Definition at line 134 of file gdrawcon.cpp.
|
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Declares a preference that allows you to clear memory in delete().
Reimplemented from SimpleCCObject. Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Sets the default bitmap parameters so a bitmap plot afterwards does not depend on the prior GDrawContext state.
Definition at line 149 of file gdrawcon.cpp. 00150 { 00151 BOOL ok= TRUE; 00152 for (INT32 i=0; i<=3; i++) ok &= 00153 SetBias(i, 0.0) && 00154 SetGain(i, 0.0) && 00155 SetInputRange(i, 0x00, 0xff) && 00156 SetOutputRange(i, 0x00, 0xff) && 00157 TRUE; 00158 00159 ok &= 00160 SetBrightness(0.0) && 00161 SetContone(0) && 00162 SetContrast(0.0) && 00163 SetGamma(1.0) && 00164 SetPostGamma(1.0) && 00165 SetSaturation(0.0) && 00166 Sharpen(0) && 00167 TRUE; 00168 00169 SetMaxFilterSize(100); 00170 SetTileSmoothingFlag( FALSE ); 00171 SetTileFilteringFlag( FALSE ); 00172 return ok; 00173 }
|
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |
|
Implemented in GDrawAsm. |