C# Class NewTOAPIA.Drawing.GDIInfoContext

Inheritance: System.Runtime.InteropServices.SafeHandle
Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
CreateInfoForDevice ( string device, string name ) : GDIInfoContext
GetDeviceCaps ( int nIndex ) : int
SetGraphicsMode ( int mode ) : void

Protected Methods

Method Description
ReleaseHandle ( ) : bool
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
GDIInfoContext ( GDIContext aDC ) : System
GDIInfoContext ( IntPtr hDC, bool ownHandle ) : System

Method Details

CreateInfoForDevice() public static method

public static CreateInfoForDevice ( string device, string name ) : GDIInfoContext
device string
name string
return GDIInfoContext

GetDeviceCaps() public method

public GetDeviceCaps ( int nIndex ) : int
nIndex int
return int

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

SetGraphicsMode() public method

public SetGraphicsMode ( int mode ) : void
mode int
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