C# 클래스 NewTOAPIA.Drawing.GDI.GDIContext

상속: GDIInfoContext
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
SetupDefaultState ( ) : void

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

비공개 메소드들

메소드 설명
GDIContext ( GDIContext aDC ) : System
GDIContext ( IntPtr hDC, bool ownHandle ) : System

메소드 상세

CreateBrush() 공개 메소드

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

CreateForAllAttachedMonitors() 공개 정적인 메소드

public static CreateForAllAttachedMonitors ( ) : GDIContext
리턴 GDIContext

CreateForBitmap() 공개 정적인 메소드

public static CreateForBitmap ( GDIPixmap aPixMap ) : GDIContext
aPixMap GDIPixmap
리턴 GDIContext

CreateForDefaultDisplay() 공개 정적인 메소드

public static CreateForDefaultDisplay ( ) : GDIContext
리턴 GDIContext

CreateForDesktopBackground() 공개 정적인 메소드

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
리턴 GDIContext

CreateForDevice() 공개 정적인 메소드

public static CreateForDevice ( string device, string name ) : GDIContext
device string
name string
리턴 GDIContext

CreateForDisplay() 공개 정적인 메소드

public static CreateForDisplay ( string displayName ) : GDIContext
displayName string
리턴 GDIContext

CreateForMemory() 공개 정적인 메소드

public static CreateForMemory ( ) : GDIContext
리턴 GDIContext

CreateForWholeWindow() 공개 정적인 메소드

public static CreateForWholeWindow ( IntPtr hWnd ) : GDIContext
hWnd System.IntPtr
리턴 GDIContext

CreateForWindowClientArea() 공개 정적인 메소드

public static CreateForWindowClientArea ( IntPtr hWnd ) : GDIContext
hWnd System.IntPtr
리턴 GDIContext

CreatePen() 공개 메소드

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
리턴 GDIPen

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

GetBkColor() 공개 메소드

public GetBkColor ( ) : uint
리턴 uint

GetBkMode() 공개 메소드

public GetBkMode ( ) : int
리턴 int

GetDCBrushColor() 공개 메소드

public GetDCBrushColor ( ) : uint
리턴 uint

GetDCPenColor() 공개 메소드

public GetDCPenColor ( ) : uint
리턴 uint

GetROP2() 공개 메소드

public GetROP2 ( ) : BinaryRasterOps
리턴 BinaryRasterOps

ResetState() 공개 메소드

public ResetState ( ) : void
리턴 void

RestoreState() 공개 메소드

public RestoreState ( int toState ) : void
toState int
리턴 void

SaveState() 공개 메소드

public SaveState ( ) : void
리턴 void

SelectObject() 공개 메소드

public SelectObject ( IntPtr objectHandle ) : IntPtr
objectHandle System.IntPtr
리턴 System.IntPtr

SelectObject() 공개 메소드

public SelectObject ( SafeHandle objectHandle ) : IntPtr
objectHandle SafeHandle
리턴 System.IntPtr

SelectStockObject() 공개 메소드

public SelectStockObject ( int objectIndex ) : void
objectIndex int
리턴 void

SetBkColor() 공개 메소드

public SetBkColor ( uint colorref ) : void
colorref uint
리턴 void

SetBkMode() 공개 메소드

public SetBkMode ( int bkMode ) : void
bkMode int
리턴 void

SetDefaultPenColor() 공개 메소드

public SetDefaultPenColor ( UInt32 colorref ) : void
colorref System.UInt32
리턴 void

SetMappingMode() 공개 메소드

public SetMappingMode ( MappingModes aMode ) : void
aMode MappingModes
리턴 void

SetPolyFillMode() 공개 메소드

public SetPolyFillMode ( PolygonFillMode fillMode ) : void
fillMode PolygonFillMode
리턴 void

SetROP2() 공개 메소드

public SetROP2 ( BinaryRasterOps rasOp ) : void
rasOp BinaryRasterOps
리턴 void

SetupDefaultState() 보호된 메소드

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