C# Class NewTOAPIA.Drawing.GDI.GDIContext

Inheritance: GDIInfoContext
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
CreateBrush ( BrushStyle aStyle, HatchStyle hatch, Colorref colorref, System.Guid uniqueID ) : GDIBrush
CreateForAllAttachedMonitors ( ) : GDIContext
CreateForBitmap ( GDIPixmap aPixMap ) : GDIContext
CreateForDefaultDisplay ( ) : GDIContext
CreateForDesktopBackground ( ) : GDIContext

Create a GDIContext so that drawing to the desktop can occur. On Vista, the drawing will be behind all windows, but will draw on top of any icons on the actual desktop. For Windows XP, the drawing will be behind those icons as well.

CreateForDevice ( string device, string name ) : GDIContext
CreateForDisplay ( string displayName ) : GDIContext
CreateForMemory ( ) : GDIContext
CreateForWholeWindow ( IntPtr hWnd ) : GDIContext
CreateForWindowClientArea ( IntPtr hWnd ) : GDIContext
CreatePen ( PenType aType, PenStyle aStyle, PenJoinStyle aJoinStyle, PenEndCap aEndCap, Colorref colorref, int width, System.Guid uniqueID ) : GDIPen
Flush ( ) : void
GetBkColor ( ) : uint
GetBkMode ( ) : int
GetDCBrushColor ( ) : uint
GetDCPenColor ( ) : uint
GetROP2 ( ) : BinaryRasterOps
ResetState ( ) : void
RestoreState ( int toState ) : void
SaveState ( ) : void
SelectObject ( IntPtr objectHandle ) : IntPtr
SelectObject ( SafeHandle objectHandle ) : IntPtr
SelectStockObject ( int objectIndex ) : void
SetBkColor ( uint colorref ) : void
SetBkMode ( int bkMode ) : void
SetDefaultPenColor ( UInt32 colorref ) : void
SetMappingMode ( MappingModes aMode ) : void
SetPolyFillMode ( PolygonFillMode fillMode ) : void
SetROP2 ( BinaryRasterOps rasOp ) : void

Protected Methods

Method Description
SetupDefaultState ( ) : void

Setup the device to be in a known good starting state. We know we want ADVANCED drawing, so that is set.

Private Methods

Method Description
GDIContext ( GDIContext aDC ) : System
GDIContext ( IntPtr hDC, bool ownHandle ) : System

Method Details

CreateBrush() public method

public CreateBrush ( BrushStyle aStyle, HatchStyle hatch, Colorref colorref, System.Guid uniqueID ) : GDIBrush
aStyle BrushStyle
hatch HatchStyle
colorref NewTOAPIA.Graphics.Colorref
uniqueID System.Guid
return GDIBrush

CreateForAllAttachedMonitors() public static method

public static CreateForAllAttachedMonitors ( ) : GDIContext
return GDIContext

CreateForBitmap() public static method

public static CreateForBitmap ( GDIPixmap aPixMap ) : GDIContext
aPixMap GDIPixmap
return GDIContext

CreateForDefaultDisplay() public static method

public static CreateForDefaultDisplay ( ) : GDIContext
return GDIContext

CreateForDesktopBackground() public static method

Create a GDIContext so that drawing to the desktop can occur. On Vista, the drawing will be behind all windows, but will draw on top of any icons on the actual desktop. For Windows XP, the drawing will be behind those icons as well.
public static CreateForDesktopBackground ( ) : GDIContext
return GDIContext

CreateForDevice() public static method

public static CreateForDevice ( string device, string name ) : GDIContext
device string
name string
return GDIContext

CreateForDisplay() public static method

public static CreateForDisplay ( string displayName ) : GDIContext
displayName string
return GDIContext

CreateForMemory() public static method

public static CreateForMemory ( ) : GDIContext
return GDIContext

CreateForWholeWindow() public static method

public static CreateForWholeWindow ( IntPtr hWnd ) : GDIContext
hWnd System.IntPtr
return GDIContext

CreateForWindowClientArea() public static method

public static CreateForWindowClientArea ( IntPtr hWnd ) : GDIContext
hWnd System.IntPtr
return GDIContext

CreatePen() public method

public CreatePen ( PenType aType, PenStyle aStyle, PenJoinStyle aJoinStyle, PenEndCap aEndCap, Colorref colorref, int width, System.Guid uniqueID ) : GDIPen
aType PenType
aStyle PenStyle
aJoinStyle PenJoinStyle
aEndCap PenEndCap
colorref NewTOAPIA.Graphics.Colorref
width int
uniqueID System.Guid
return GDIPen

Flush() public method

public Flush ( ) : void
return void

GetBkColor() public method

public GetBkColor ( ) : uint
return uint

GetBkMode() public method

public GetBkMode ( ) : int
return int

GetDCBrushColor() public method

public GetDCBrushColor ( ) : uint
return uint

GetDCPenColor() public method

public GetDCPenColor ( ) : uint
return uint

GetROP2() public method

public GetROP2 ( ) : BinaryRasterOps
return BinaryRasterOps

ResetState() public method

public ResetState ( ) : void
return void

RestoreState() public method

public RestoreState ( int toState ) : void
toState int
return void

SaveState() public method

public SaveState ( ) : void
return void

SelectObject() public method

public SelectObject ( IntPtr objectHandle ) : IntPtr
objectHandle System.IntPtr
return System.IntPtr

SelectObject() public method

public SelectObject ( SafeHandle objectHandle ) : IntPtr
objectHandle SafeHandle
return System.IntPtr

SelectStockObject() public method

public SelectStockObject ( int objectIndex ) : void
objectIndex int
return void

SetBkColor() public method

public SetBkColor ( uint colorref ) : void
colorref uint
return void

SetBkMode() public method

public SetBkMode ( int bkMode ) : void
bkMode int
return void

SetDefaultPenColor() public method

public SetDefaultPenColor ( UInt32 colorref ) : void
colorref System.UInt32
return void

SetMappingMode() public method

public SetMappingMode ( MappingModes aMode ) : void
aMode MappingModes
return void

SetPolyFillMode() public method

public SetPolyFillMode ( PolygonFillMode fillMode ) : void
fillMode PolygonFillMode
return void

SetROP2() public method

public SetROP2 ( BinaryRasterOps rasOp ) : void
rasOp BinaryRasterOps
return void

SetupDefaultState() protected method

Setup the device to be in a known good starting state. We know we want ADVANCED drawing, so that is set.
protected SetupDefaultState ( ) : void
return void