C# 클래스 NewTOAPIA.Drawing.GDIContext

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

공개 메소드들

메소드 설명
AlphaBlend ( GDIContext srcDC, Rectangle srcRect, Rectangle dstRect, byte opacity ) : bool
BeginPath ( ) : void
BitBlt ( GDIContext srcDC, Point srcPoint, Rectangle dstRect, TernaryRasterOps dwRop ) : bool
ClearToBlack ( ) : void
ClearToWhite ( ) : void

Fills the entire context with white pixels. This is most useful when clearing a bitmap, but it can be used for any context.

CreateForAllAttachedMonitors ( ) : 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
DrawRegion ( GDIRegion region ) : void
EndPath ( ) : void
FillPath ( ) : void
FillRectangleWithBlack ( Rectangle rect ) : void
FillRectangleWithWhite ( Rectangle rect ) : void

Fill a particular rectangle with white pixels. Similar to the ClearToWhite call, but takes a specific Rectangle as the area to be filled.

FillRegion ( GDIRegion region, GDIBrush aBrush ) : void
FlattenPath ( ) : void
FloodFill ( int x, int y, uint colorref, FloodFillType floodtype ) : bool
Flush ( ) : void
FrameRegion ( GDIRegion region, GDIBrush aBrush, Size strokeSize ) : void
GetBkColor ( ) : uint
GetBkMode ( ) : int
GetDCBrushColor ( ) : uint
GetDCPenColor ( ) : uint
GetPixel ( int x, int y ) : UInt32

Retrieves a single pixel value from the Device Context.

GetROP2 ( ) : BinaryRasterOps
InvertRegion ( GDIRegion region ) : void
LineTo ( int x, int y ) : void
MoveTo ( int x, int y ) : void
OffsetWindowOrigin ( int x, int y ) : void
PatBlt ( int x, int y, int width, int height, TernaryRasterOps rasterOp ) : bool
PixelBlt ( Rectangle srcRect, Rectangle dstRect, IntPtr pixelPtr, BitCount bitsPerPixel ) : int
PlgBlt ( GDIContext srcDC, Rectangle srcRect, POINT dstParallelogramPoints, IntPtr hbmMask, int xMask, int yMask ) : bool
PolyBezierTo ( POINT pts ) : void
PolyLine ( POINT points ) : void
PolyLineTo ( POINT points ) : void
PolyPolyLine ( POINT points, int polypoints, int nCount ) : void
Rectangle ( int left, int top, int right, int bottom ) : void
ReplayPath ( GPath aPath ) : void
ResetState ( ) : void
RestoreState ( int toState ) : void
RoundRect ( int left, int top, int right, int bottom, int xRadius, int yRadius ) : void
SaveState ( ) : void
SetBkColor ( uint colorref ) : void
SetBkMode ( int bkMode ) : void
SetDefaultPenColor ( UInt32 colorref ) : void
SetMappingMode ( MappingModes aMode ) : void
SetPathAsClipRegion ( ) : void
SetPixel ( int x, int y, UInt32 colorref ) : UInt32
SetPolyFillMode ( PolygonFillMode fillMode ) : void
SetROP2 ( BinaryRasterOps rasOp ) : void
SetViewportExtent ( int width, int height ) : void
SetViewportOrigin ( int x, int y ) : void
SetWindowExtent ( int width, int height ) : void
SetWindowOrigin ( int x, int y ) : void
SetWorldTransform ( Transform2D aTransform ) : void
StretchBlt ( GDIContext srcDC, Rectangle srcRect, Rectangle dstRect, TernaryRasterOps dwRop ) : bool
StrokeAndFillPath ( ) : void
StrokePath ( ) : 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
GetWorldTransform ( ) : Transform2D

메소드 상세

AlphaBlend() 공개 메소드

public AlphaBlend ( GDIContext srcDC, Rectangle srcRect, Rectangle dstRect, byte opacity ) : bool
srcDC GDIContext
srcRect System.Drawing.Rectangle
dstRect System.Drawing.Rectangle
opacity byte
리턴 bool

BeginPath() 공개 메소드

public BeginPath ( ) : void
리턴 void

BitBlt() 공개 메소드

public BitBlt ( GDIContext srcDC, Point srcPoint, Rectangle dstRect, TernaryRasterOps dwRop ) : bool
srcDC GDIContext
srcPoint Point
dstRect System.Drawing.Rectangle
dwRop TernaryRasterOps
리턴 bool

ClearToBlack() 공개 메소드

public ClearToBlack ( ) : void
리턴 void

ClearToWhite() 공개 메소드

Fills the entire context with white pixels. This is most useful when clearing a bitmap, but it can be used for any context.
public ClearToWhite ( ) : void
리턴 void

CreateForAllAttachedMonitors() 공개 정적인 메소드

public static CreateForAllAttachedMonitors ( ) : GDIContext
리턴 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

DrawRegion() 공개 메소드

public DrawRegion ( GDIRegion region ) : void
region GDIRegion
리턴 void

EndPath() 공개 메소드

public EndPath ( ) : void
리턴 void

FillPath() 공개 메소드

public FillPath ( ) : void
리턴 void

FillRectangleWithBlack() 공개 메소드

public FillRectangleWithBlack ( Rectangle rect ) : void
rect System.Drawing.Rectangle
리턴 void

FillRectangleWithWhite() 공개 메소드

Fill a particular rectangle with white pixels. Similar to the ClearToWhite call, but takes a specific Rectangle as the area to be filled.
public FillRectangleWithWhite ( Rectangle rect ) : void
rect System.Drawing.Rectangle
리턴 void

FillRegion() 공개 메소드

public FillRegion ( GDIRegion region, GDIBrush aBrush ) : void
region GDIRegion
aBrush GDIBrush
리턴 void

FlattenPath() 공개 메소드

public FlattenPath ( ) : void
리턴 void

FloodFill() 공개 메소드

public FloodFill ( int x, int y, uint colorref, FloodFillType floodtype ) : bool
x int
y int
colorref uint
floodtype FloodFillType
리턴 bool

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

FrameRegion() 공개 메소드

public FrameRegion ( GDIRegion region, GDIBrush aBrush, Size strokeSize ) : void
region GDIRegion
aBrush GDIBrush
strokeSize System.Drawing.Size
리턴 void

GetBkColor() 공개 메소드

public GetBkColor ( ) : uint
리턴 uint

GetBkMode() 공개 메소드

public GetBkMode ( ) : int
리턴 int

GetDCBrushColor() 공개 메소드

public GetDCBrushColor ( ) : uint
리턴 uint

GetDCPenColor() 공개 메소드

public GetDCPenColor ( ) : uint
리턴 uint

GetPixel() 공개 메소드

Retrieves a single pixel value from the Device Context.
public GetPixel ( int x, int y ) : UInt32
x int
y int
리턴 System.UInt32

GetROP2() 공개 메소드

public GetROP2 ( ) : BinaryRasterOps
리턴 BinaryRasterOps

InvertRegion() 공개 메소드

public InvertRegion ( GDIRegion region ) : void
region GDIRegion
리턴 void

LineTo() 공개 메소드

public LineTo ( int x, int y ) : void
x int
y int
리턴 void

MoveTo() 공개 메소드

public MoveTo ( int x, int y ) : void
x int
y int
리턴 void

OffsetWindowOrigin() 공개 메소드

public OffsetWindowOrigin ( int x, int y ) : void
x int
y int
리턴 void

PatBlt() 공개 메소드

public PatBlt ( int x, int y, int width, int height, TernaryRasterOps rasterOp ) : bool
x int
y int
width int
height int
rasterOp TernaryRasterOps
리턴 bool

PixelBlt() 공개 메소드

public PixelBlt ( Rectangle srcRect, Rectangle dstRect, IntPtr pixelPtr, BitCount bitsPerPixel ) : int
srcRect System.Drawing.Rectangle
dstRect System.Drawing.Rectangle
pixelPtr System.IntPtr
bitsPerPixel BitCount
리턴 int

PlgBlt() 공개 메소드

public PlgBlt ( GDIContext srcDC, Rectangle srcRect, POINT dstParallelogramPoints, IntPtr hbmMask, int xMask, int yMask ) : bool
srcDC GDIContext
srcRect System.Drawing.Rectangle
dstParallelogramPoints POINT
hbmMask System.IntPtr
xMask int
yMask int
리턴 bool

PolyBezierTo() 공개 메소드

public PolyBezierTo ( POINT pts ) : void
pts POINT
리턴 void

PolyLine() 공개 메소드

public PolyLine ( POINT points ) : void
points POINT
리턴 void

PolyLineTo() 공개 메소드

public PolyLineTo ( POINT points ) : void
points POINT
리턴 void

PolyPolyLine() 공개 메소드

public PolyPolyLine ( POINT points, int polypoints, int nCount ) : void
points POINT
polypoints int
nCount int
리턴 void

Rectangle() 공개 메소드

public Rectangle ( int left, int top, int right, int bottom ) : void
left int
top int
right int
bottom int
리턴 void

ReplayPath() 공개 메소드

public ReplayPath ( GPath aPath ) : void
aPath GPath
리턴 void

ResetState() 공개 메소드

public ResetState ( ) : void
리턴 void

RestoreState() 공개 메소드

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

RoundRect() 공개 메소드

public RoundRect ( int left, int top, int right, int bottom, int xRadius, int yRadius ) : void
left int
top int
right int
bottom int
xRadius int
yRadius int
리턴 void

SaveState() 공개 메소드

public SaveState ( ) : void
리턴 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

SetPathAsClipRegion() 공개 메소드

public SetPathAsClipRegion ( ) : void
리턴 void

SetPixel() 공개 메소드

public SetPixel ( int x, int y, UInt32 colorref ) : UInt32
x int
y int
colorref System.UInt32
리턴 System.UInt32

SetPolyFillMode() 공개 메소드

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

SetROP2() 공개 메소드

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

SetViewportExtent() 공개 메소드

public SetViewportExtent ( int width, int height ) : void
width int
height int
리턴 void

SetViewportOrigin() 공개 메소드

public SetViewportOrigin ( int x, int y ) : void
x int
y int
리턴 void

SetWindowExtent() 공개 메소드

public SetWindowExtent ( int width, int height ) : void
width int
height int
리턴 void

SetWindowOrigin() 공개 메소드

public SetWindowOrigin ( int x, int y ) : void
x int
y int
리턴 void

SetWorldTransform() 공개 메소드

public SetWorldTransform ( Transform2D aTransform ) : void
aTransform Transform2D
리턴 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

StretchBlt() 공개 메소드

public StretchBlt ( GDIContext srcDC, Rectangle srcRect, Rectangle dstRect, TernaryRasterOps dwRop ) : bool
srcDC GDIContext
srcRect System.Drawing.Rectangle
dstRect System.Drawing.Rectangle
dwRop TernaryRasterOps
리턴 bool

StrokeAndFillPath() 공개 메소드

public StrokeAndFillPath ( ) : void
리턴 void

StrokePath() 공개 메소드

public StrokePath ( ) : void
리턴 void