GDrawContext Class Reference

To put a C++ wrapper around the GDraw DLL. Also allows non-Gavin originated GDraws (e.g. XDraw) to be dropped in as required. This class is almost a pure base class - inherited classes have to have their own functions for almost everything. More...

#include <gdrawcon.h>

Inheritance diagram for GDrawContext:

SimpleCCObject GDrawAsm List of all members.

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 LOGPALETTESelectPalette (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 REGIONGetClipRegion ()=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.

Detailed Description

To put a C++ wrapper around the GDraw DLL. Also allows non-Gavin originated GDraws (e.g. XDraw) to be dropped in as required. This class is almost a pure base class - inherited classes have to have their own functions for almost everything.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/7/94
The caller should only ever need one instance of one of these (really its inherited brothers) and keep it around for the duration of the program. The keeper of the pointer to this is GRenderRegion.

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 & Destructor Documentation

GDrawContext::GDrawContext  ) 
 

Constructor. Most inherited classes will use this one. It does nothing.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/7/94

Definition at line 120 of file gdrawcon.cpp.

00121 {
00122 }

GDrawContext::~GDrawContext  )  [virtual]
 

Destructor. Most inherited classes will use this one. It does nothing.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/7/94

Definition at line 134 of file gdrawcon.cpp.

00135 {
00136 }


Member Function Documentation

virtual BOOL GDrawContext::AddToGraduationTable COLORREF  ,
BOOL  ,
GraduationTable ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Blur INT32   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::BuildGraduationTable COLORREF  ,
COLORREF  ,
DWORD  ,
GraduationTable
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::BuildTransparencyTable DWORD  ,
DWORD  ,
TransparentGradTable
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::CalcBBox LPPOINT  ,
const BYTE *  ,
DWORD  ,
LPRECT  ,
BOOL 
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::CalcStrokeBBox CONST POINT IPoints,
CONST BYTE *  ITypes,
DWORD  ILength,
LPRECT  Rect,
BOOL  Close,
DWORD  LineWidth,
CapStyles  LineCaps,
JoinStyles  LineJoin,
CONST DashType Dash
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::ClearChangedBBox  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::ClipRectangle LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::ClipRegion const REGION  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::ConvertBitmap LPBITMAPINFOHEADER  ,
LPBYTE  ,
LPBITMAPINFOHEADER  ,
LPBYTE  ,
INT32 
[pure virtual]
 

Implemented in GDrawAsm.

virtual COLORREF GDrawContext::ConvertHSVtoRGB COLORREF   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual COLORREF GDrawContext::ConvertRGBtoHSV COLORREF   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::DeviceClipRectangle LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::FillPath LPPOINT  ,
const BYTE *  ,
UINT32  ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::FillPoint LPPOINT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::FillRectangle LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::FillRegion CONST REGION Region,
CONST POINT Offset
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::GetChangedBBox LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual const REGION* GDrawContext::GetClipRegion  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::GetDeviceClipRectangle LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetGraduationTableLength  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetGraduationTableSize  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual eError GDrawContext::GetLastError  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetLongGraduationTableLength  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetLongGraduationTableSize  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetLongTransparentGraduationTableLength  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetLongTransparentGraduationTableSize  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual DWORD GDrawContext::GetMaxBitmapDepth void   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual DWORD GDrawContext::GetMaxBitmapWidth void   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::GetStatistics LPPOINT  ,
const BYTE *  ,
UINT32  ,
DWORD  ,
STATISTICS
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetTransparentGraduationTableLength  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::GetTransparentGraduationTableSize  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::HintPath CONST POINT Points,
CONST BYTE *  Types,
UINT32  Length,
BOOL  Close,
DWORD  LineWidth
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Init void   )  [pure virtual]
 

Declares a preference that allows you to clear memory in delete().

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/4/94
Returns:
TRUE if it worked OK, FALSE if not

Reimplemented from SimpleCCObject.

Implemented in GDrawAsm.

virtual BOOL GDrawContext::InitialiseWithPalette const LOGPALETTE  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::IsOverlap LPPOINT  ,
const BYTE *  ,
UINT32  ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::MakeRegion LPPOINT  ,
const BYTE *  ,
UINT32  ,
DWORD  ,
REGION ,
UINT32 
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::MakeUnclippedRegion CONST POINT Points,
CONST BYTE *  Types,
UINT32  Length,
DWORD  Winding,
REGION ORegion,
UINT32  OLength
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::MaxScale CONST GMATRIX Matrix,
CONST RECT BBox
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::PlotBitmap LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
LPRGBQUAD  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::PlotPerspectiveBitmap LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
LPRGBQUAD  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::RestoreContext CONST GCONTEXT Context  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual CONST BYTE* GDrawContext::ReturnBrush  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual CONST BYTE* GDrawContext::ReturnBrushRGB  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SaveContext GCONTEXT Context  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual const LOGPALETTE* GDrawContext::SelectPalette INT32   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Set3WayGraduation DWORD  Style,
COLORREF  ColourA,
COLORREF  ColourB,
COLORREF  ColourD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Set3WayGraduation4 DWORD  Style,
COLORREF  ColourA,
COLORREF  ColourB,
COLORREF  ColourD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Set4WayGraduation DWORD  Style,
COLORREF  ColourA,
COLORREF  ColourB,
COLORREF  ColourC,
COLORREF  ColourD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Set4WayGraduation4 DWORD  Style,
COLORREF  ColourA,
COLORREF  ColourB,
COLORREF  ColourC,
COLORREF  ColourD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetAntialiasFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetAntialiasQualityFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::SetBevelContrast UINT32  nContrast  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::SetBevelDarkness UINT32  nContrast  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::SetBevelLightness UINT32  nContrast  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetBias UINT32  ,
double 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetBitmap CONST LPBITMAPINFOHEADER  BitmapInfo,
CONST LPBYTE  Bitmap,
DWORD  BitmapFormat = 2
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetBitmapConversionTable const BGR BitmapConversionTable = NULL  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetBitmapFill LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
COLORREF  ,
LPRGBQUAD  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
DWORD  = 0
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetBrightness double   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetChangedBBox LPRECT   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetColour COLORREF   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetContone UINT32  ,
COLORREF  = 0x000000,
COLORREF  = 0xFFFFFF
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetContrast double   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetConversionPalette PLOGPALETTE   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetDashAdjustmentFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

BOOL GDrawContext::SetDefaultBitmapParameters  )  [virtual]
 

Sets the default bitmap parameters so a bitmap plot afterwards does not depend on the prior GDrawContext state.

Author:
Alex Bligh
Date:
19/05/2005

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 }

virtual BOOL GDrawContext::SetDitherStyle DitherStyle  Style = DITHER_GREY_ORDERED  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetFlatness DWORD   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetGain UINT32  ,
double 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetGamma double   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetGraduation DWORD  Style,
CONST GraduationTable Table,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetGraduation4 DWORD  Style,
CONST GraduationTable Table,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetHalftoneOrigin DWORD  ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetHintingFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetInputRange UINT32  ,
BYTE  = 0x00,
BYTE  = 0xFF
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetInvert DWORD   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetMatrix GMATRIX  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetMatrixIntFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetMaxFilterSize UINT32   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetMiterLimit DWORD   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetOutputRange UINT32  ,
BYTE  = 0x00,
BYTE  = 0xFF
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetPerspectiveBitmapFill LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
COLORREF  ,
LPRGBQUAD  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
LPBYTE  ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetPerspectiveTransparentBitmapFill LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
COLORREF  ,
BYTE *  ,
DWORD 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetPostGamma double   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetSaturation double   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::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
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetSolidColour COLORREF  ,
DWORD  BPP = 0,
DWORD  Format = 2
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetStackLimit LPVOID   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetStackSize DWORD   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetTileFilteringFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::SetTileSmoothingFlag BOOL   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparency COLORREF  ,
TransparencyEnum 
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparencyLookupTable CONST BYTE *  Table  )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparent3WayGraduation DWORD  Style,
BYTE  ValueA,
BYTE  ValueB,
BYTE  ValueD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparent3WayGraduation4 DWORD  Style,
BYTE  ValueA,
BYTE  ValueB,
BYTE  ValueD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparent4WayGraduation DWORD  Style,
BYTE  ValueA,
BYTE  ValueB,
BYTE  ValueC,
BYTE  ValueD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparent4WayGraduation4 DWORD  Style,
BYTE  ValueA,
BYTE  ValueB,
BYTE  ValueC,
BYTE  ValueD,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparentBitmapFill LPBITMAPINFOHEADER  ,
LPBYTE  ,
DWORD  ,
LPPOINT  ,
COLORREF  ,
BYTE *  = NULL,
DWORD  = 0
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparentGraduation DWORD  Style,
CONST TranspGradTable Table,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetTransparentGraduation4 DWORD  Style,
CONST TranspGradTable Table,
CONST POINT PointA,
CONST POINT PointB,
CONST POINT PointC,
CONST POINT PointD
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetupBitmap INT32  Width,
INT32  Height,
INT32  Depth,
LPBYTE  Bits,
DWORD  Format = 2,
BOOL  DoBiCompression = FALSE
[pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::SetWordColour DWORD   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::Sharpen INT32   )  [pure virtual]
 

Implemented in GDrawAsm.

virtual BOOL GDrawContext::StrokePath LPPOINT  ,
const BYTE *  ,
UINT32  ,
BOOL  ,
DWORD  ,
CapStyles  ,
JoinStyles  ,
const DashType
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::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
[pure virtual]
 

Implemented in GDrawAsm.

virtual void GDrawContext::TransformPath LPPOINT  ,
LPPOINT  ,
DWORD  ,
GMATRIX
[pure virtual]
 

Implemented in GDrawAsm.

virtual INT32 GDrawContext::TranslateBevelValue BYTE  nIndex,
BYTE  Colour
[pure virtual]
 

Implemented in GDrawAsm.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:45 2007 for Camelot by  doxygen 1.4.4