C# Класс GDIGeometryRenderer, NewTOAPIA

A bit about drawing with GDI32. There are several parameters that determine exactly what's going to get drawn on the screen RasterOp Pen Brush Background Color Foreground Line Drawing X X Curve Drawing Framing
Наследование: IRenderGDI
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AlphaBlend ( int x, int y, int width, int height, IntPtr srchDC, int srcX, int srcY, int srcWidth, int srcHeight, byte alpha ) : bool
BeginPath ( ) : bool
BitBlt ( int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop ) : bool
BitBlt ( int x, int y, PixelBuffer, bitmap ) : void
BlendPixel ( Point aPoint, uint colorref, byte alpha ) : bool
CreateBitmap ( int width, int height ) : PixelBuffer,
CreateBrush ( int aStyle, int hatch, uint colorref, System.Guid uniqueID ) : Brush,
CreatePen ( int aStyle, int width, uint color, System.Guid uniqueID ) : Pen,
DrawBitmap ( PixelBuffer, img, Point origin ) : void

DrawImage, will draw the supplied image graphic on the screen. It will use the Image's frame and size to determine where to display it.

DrawBitmap ( PixelBuffer, img, Rectangle, srcRect, Rectangle, dstRect ) : void
DrawEllipse ( EllipseG, aEllipse, Pen, aPen, Brush, aBrush ) : void
DrawLine ( LineG, aLine, Pen, pen ) : void
DrawLine ( Point startPoint, Point endPoint ) : void
DrawLine ( int x1, int y1, int x2, int y2 ) : void
DrawPath ( ) : bool
DrawPolygon ( Point points ) : void
DrawPolygon ( Point points, Pen, aPen, Brush, aBrush ) : void
DrawPolygon ( PolygonG, poly, Pen, aPen, Brush, aBrush ) : void
DrawRectangle ( Rectangle, aRect, Pen, aPen, Brush, aBrush ) : void
DrawString ( int x, int y, string aString ) : void
Ellipse ( int left, int top, int right, int bottom ) : void
EndPath ( ) : bool
FillEllipse ( EllipseG, aEllipse, Brush, aBrush ) : void
FillPath ( ) : bool
FillPolygon ( PolygonG, poly, Brush, aBrush ) : void
FillRectangle ( Rectangle, aRect, Brush, aBrush ) : void
Flush ( ) : void
FrameEllipse ( EllipseG, aEllipse, Pen, aPen ) : void
FramePath ( ) : bool
FramePolygon ( PolygonG, poly, Pen, aPen ) : void
FrameRectangle ( Rectangle, aRect, Pen, pen ) : void
GDIGeometryRenderer ( GDIDeviceContext devContext ) : System
GetPixel ( int x, int y ) : uint
GradientFill ( TRIVERTEX pVertex, GRADIENT_RECT pMesh, uint dwMode ) : void
GradientFill ( TRIVERTEX pVertex, GRADIENT_TRIANGLE pMesh, uint dwMode ) : void
LineTo ( Point toPoint ) : void
LineTo ( int x, int y ) : void
MeasureCharacter ( char c, int &width, int &height ) : void
MoveTo ( Point aPoint ) : void
MoveTo ( int x, int y ) : void
OffsetWindowOrigin ( int x, int y ) : void
PlgBlt ( Point lpPoint, IntPtr hdcSrc, int srcX, int srcY, int width, int height, IntPtr hbmMask, int xMask, int yMask ) : bool
PolyBezier ( Point points ) : void
PolyDraw ( Point apt, byte aj ) : void
PolyLine ( Point points ) : void
Polygon ( Point points ) : void
Rectangle ( Rectangle, aRect ) : void
Rectangle ( int left, int top, int right, int bottom ) : void

Draw the frame of a rectangle using a pen. Leave the interior alone.

ResetClip ( ) : void
RestoreState ( ) : void
RestoreState ( int relative ) : void
RoundRect ( int left, int top, int right, int bottom, int width, int height ) : void
SaveState ( ) : void
SelectObject ( Brush, aBrush ) : void
SelectObject ( Font, aFont ) : void
SelectObject ( IntPtr objectHandle ) : void
SelectObject ( Pen, aPen ) : void
SelectStockObject ( int objectIndex ) : void
SelectUniqueObject ( System.Guid objectID ) : void
SetBkColor ( uint colorref ) : void
SetBkMode ( int bkMode ) : void
SetClip ( Rectangle, clipRect ) : void
SetClip ( Region, clipRegion ) : void
SetDefaultBrushColor ( uint colorref ) : void
SetDefaultPenColor ( uint colorref ) : void
SetMappingMode ( MappingModes aMode ) : void
SetPathAsClipRegion ( ) : bool
SetPen ( Pen, aPen ) : void
SetPixel ( int x, int y, uint colorref ) : void
SetPolyFillMode ( int fillMode ) : void
SetTextColor ( uint colorref ) : void
SetViewportExtent ( int width, int height ) : void
SetViewportOrigin ( int x, int y ) : void
SetWindowExtent ( int width, int height ) : Size,
SetWindowOrigin ( int x, int y ) : void
StretchBlt ( int x, int y, int width, int height, IntPtr srchDC, int srcX, int srcY, int srcWidth, int srcHeight, TernaryRasterOps dwRop ) : bool
TranslateTransform ( int dx, int dy ) : bool
UseDefaultBrush ( ) : void
UseDefaultPen ( ) : void

Приватные методы

Метод Описание
GetWorldTransform ( ) : XFORM
SetWorldTransform ( XFORM aTransform ) : bool

Описание методов

AlphaBlend() публичный Метод

public AlphaBlend ( int x, int y, int width, int height, IntPtr srchDC, int srcX, int srcY, int srcWidth, int srcHeight, byte alpha ) : bool
x int
y int
width int
height int
srchDC IntPtr
srcX int
srcY int
srcWidth int
srcHeight int
alpha byte
Результат bool

BeginPath() публичный Метод

public BeginPath ( ) : bool
Результат bool

BitBlt() публичный Метод

public BitBlt ( int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, TernaryRasterOps dwRop ) : bool
x int
y int
nWidth int
nHeight int
hSrcDC IntPtr
xSrc int
ySrc int
dwRop TernaryRasterOps
Результат bool

BitBlt() публичный Метод

public BitBlt ( int x, int y, PixelBuffer, bitmap ) : void
x int
y int
bitmap PixelBuffer,
Результат void

BlendPixel() публичный Метод

public BlendPixel ( Point aPoint, uint colorref, byte alpha ) : bool
aPoint Point
colorref uint
alpha byte
Результат bool

CreateBitmap() публичный Метод

public CreateBitmap ( int width, int height ) : PixelBuffer,
width int
height int
Результат PixelBuffer,

CreateBrush() публичный Метод

public CreateBrush ( int aStyle, int hatch, uint colorref, System.Guid uniqueID ) : Brush,
aStyle int
hatch int
colorref uint
uniqueID System.Guid
Результат Brush,

CreatePen() публичный Метод

public CreatePen ( int aStyle, int width, uint color, System.Guid uniqueID ) : Pen,
aStyle int
width int
color uint
uniqueID System.Guid
Результат Pen,

DrawBitmap() публичный Метод

DrawImage, will draw the supplied image graphic on the screen. It will use the Image's frame and size to determine where to display it.
public DrawBitmap ( PixelBuffer, img, Point origin ) : void
img PixelBuffer,
origin Point
Результат void

DrawBitmap() публичный Метод

public DrawBitmap ( PixelBuffer, img, Rectangle, srcRect, Rectangle, dstRect ) : void
img PixelBuffer,
srcRect Rectangle,
dstRect Rectangle,
Результат void

DrawEllipse() публичный Метод

public DrawEllipse ( EllipseG, aEllipse, Pen, aPen, Brush, aBrush ) : void
aEllipse EllipseG,
aPen Pen,
aBrush Brush,
Результат void

DrawLine() публичный Метод

public DrawLine ( LineG, aLine, Pen, pen ) : void
aLine LineG,
pen Pen,
Результат void

DrawLine() публичный Метод

public DrawLine ( Point startPoint, Point endPoint ) : void
startPoint Point
endPoint Point
Результат void

DrawLine() публичный Метод

public DrawLine ( int x1, int y1, int x2, int y2 ) : void
x1 int
y1 int
x2 int
y2 int
Результат void

DrawPath() публичный Метод

public DrawPath ( ) : bool
Результат bool

DrawPolygon() публичный Метод

public DrawPolygon ( Point points ) : void
points Point
Результат void

DrawPolygon() публичный Метод

public DrawPolygon ( Point points, Pen, aPen, Brush, aBrush ) : void
points Point
aPen Pen,
aBrush Brush,
Результат void

DrawPolygon() публичный Метод

public DrawPolygon ( PolygonG, poly, Pen, aPen, Brush, aBrush ) : void
poly PolygonG,
aPen Pen,
aBrush Brush,
Результат void

DrawRectangle() публичный Метод

public DrawRectangle ( Rectangle, aRect, Pen, aPen, Brush, aBrush ) : void
aRect Rectangle,
aPen Pen,
aBrush Brush,
Результат void

DrawString() публичный Метод

public DrawString ( int x, int y, string aString ) : void
x int
y int
aString string
Результат void

Ellipse() публичный Метод

public Ellipse ( int left, int top, int right, int bottom ) : void
left int
top int
right int
bottom int
Результат void

EndPath() публичный Метод

public EndPath ( ) : bool
Результат bool

FillEllipse() публичный Метод

public FillEllipse ( EllipseG, aEllipse, Brush, aBrush ) : void
aEllipse EllipseG,
aBrush Brush,
Результат void

FillPath() публичный Метод

public FillPath ( ) : bool
Результат bool

FillPolygon() публичный Метод

public FillPolygon ( PolygonG, poly, Brush, aBrush ) : void
poly PolygonG,
aBrush Brush,
Результат void

FillRectangle() публичный Метод

public FillRectangle ( Rectangle, aRect, Brush, aBrush ) : void
aRect Rectangle,
aBrush Brush,
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

FrameEllipse() публичный Метод

public FrameEllipse ( EllipseG, aEllipse, Pen, aPen ) : void
aEllipse EllipseG,
aPen Pen,
Результат void

FramePath() публичный Метод

public FramePath ( ) : bool
Результат bool

FramePolygon() публичный Метод

public FramePolygon ( PolygonG, poly, Pen, aPen ) : void
poly PolygonG,
aPen Pen,
Результат void

FrameRectangle() публичный Метод

public FrameRectangle ( Rectangle, aRect, Pen, pen ) : void
aRect Rectangle,
pen Pen,
Результат void

GDIGeometryRenderer() публичный Метод

public GDIGeometryRenderer ( GDIDeviceContext devContext ) : System
devContext GDIDeviceContext
Результат System

GetPixel() публичный Метод

public GetPixel ( int x, int y ) : uint
x int
y int
Результат uint

GradientFill() публичный Метод

public GradientFill ( TRIVERTEX pVertex, GRADIENT_RECT pMesh, uint dwMode ) : void
pVertex TRIVERTEX
pMesh TOAPI.Types.GRADIENT_RECT
dwMode uint
Результат void

GradientFill() публичный Метод

public GradientFill ( TRIVERTEX pVertex, GRADIENT_TRIANGLE pMesh, uint dwMode ) : void
pVertex TRIVERTEX
pMesh TOAPI.Types.GRADIENT_TRIANGLE
dwMode uint
Результат void

LineTo() публичный Метод

public LineTo ( Point toPoint ) : void
toPoint Point
Результат void

LineTo() публичный Метод

public LineTo ( int x, int y ) : void
x int
y int
Результат void

MeasureCharacter() публичный Метод

public MeasureCharacter ( char c, int &width, int &height ) : void
c char
width int
height int
Результат void

MoveTo() публичный Метод

public MoveTo ( Point aPoint ) : void
aPoint Point
Результат 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

PlgBlt() публичный Метод

public PlgBlt ( Point lpPoint, IntPtr hdcSrc, int srcX, int srcY, int width, int height, IntPtr hbmMask, int xMask, int yMask ) : bool
lpPoint Point
hdcSrc IntPtr
srcX int
srcY int
width int
height int
hbmMask IntPtr
xMask int
yMask int
Результат bool

PolyBezier() публичный Метод

public PolyBezier ( Point points ) : void
points Point
Результат void

PolyDraw() публичный Метод

public PolyDraw ( Point apt, byte aj ) : void
apt Point
aj byte
Результат void

PolyLine() публичный Метод

public PolyLine ( Point points ) : void
points Point
Результат void

Polygon() публичный Метод

public Polygon ( Point points ) : void
points Point
Результат void

Rectangle() публичный Метод

public Rectangle ( Rectangle, aRect ) : void
aRect Rectangle,
Результат void

Rectangle() публичный Метод

Draw the frame of a rectangle using a pen. Leave the interior alone.
public Rectangle ( int left, int top, int right, int bottom ) : void
left int
top int
right int
bottom int
Результат void

ResetClip() публичный Метод

public ResetClip ( ) : void
Результат void

RestoreState() публичный Метод

public RestoreState ( ) : void
Результат void

RestoreState() публичный Метод

public RestoreState ( int relative ) : void
relative int
Результат void

RoundRect() публичный Метод

public RoundRect ( int left, int top, int right, int bottom, int width, int height ) : void
left int
top int
right int
bottom int
width int
height int
Результат void

SaveState() публичный Метод

public SaveState ( ) : void
Результат void

SelectObject() публичный Метод

public SelectObject ( Brush, aBrush ) : void
aBrush Brush,
Результат void

SelectObject() публичный Метод

public SelectObject ( Font, aFont ) : void
aFont Font,
Результат void

SelectObject() публичный Метод

public SelectObject ( IntPtr objectHandle ) : void
objectHandle IntPtr
Результат void

SelectObject() публичный Метод

public SelectObject ( Pen, aPen ) : void
aPen Pen,
Результат void

SelectStockObject() публичный Метод

public SelectStockObject ( int objectIndex ) : void
objectIndex int
Результат void

SelectUniqueObject() публичный Метод

public SelectUniqueObject ( System.Guid objectID ) : void
objectID System.Guid
Результат void

SetBkColor() публичный Метод

public SetBkColor ( uint colorref ) : void
colorref uint
Результат void

SetBkMode() публичный Метод

public SetBkMode ( int bkMode ) : void
bkMode int
Результат void

SetClip() публичный Метод

public SetClip ( Rectangle, clipRect ) : void
clipRect Rectangle,
Результат void

SetClip() публичный Метод

public SetClip ( Region, clipRegion ) : void
clipRegion Region,
Результат void

SetDefaultBrushColor() публичный Метод

public SetDefaultBrushColor ( uint colorref ) : void
colorref uint
Результат void

SetDefaultPenColor() публичный Метод

public SetDefaultPenColor ( uint colorref ) : void
colorref uint
Результат void

SetMappingMode() публичный Метод

public SetMappingMode ( MappingModes aMode ) : void
aMode MappingModes
Результат void

SetPathAsClipRegion() публичный Метод

public SetPathAsClipRegion ( ) : bool
Результат bool

SetPen() публичный Метод

public SetPen ( Pen, aPen ) : void
aPen Pen,
Результат void

SetPixel() публичный Метод

public SetPixel ( int x, int y, uint colorref ) : void
x int
y int
colorref uint
Результат void

SetPolyFillMode() публичный Метод

public SetPolyFillMode ( int fillMode ) : void
fillMode int
Результат void

SetTextColor() публичный Метод

public SetTextColor ( uint colorref ) : void
colorref uint
Результат 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 ) : Size,
width int
height int
Результат Size,

SetWindowOrigin() публичный Метод

public SetWindowOrigin ( int x, int y ) : void
x int
y int
Результат void

StretchBlt() публичный Метод

public StretchBlt ( int x, int y, int width, int height, IntPtr srchDC, int srcX, int srcY, int srcWidth, int srcHeight, TernaryRasterOps dwRop ) : bool
x int
y int
width int
height int
srchDC IntPtr
srcX int
srcY int
srcWidth int
srcHeight int
dwRop TernaryRasterOps
Результат bool

TranslateTransform() публичный Метод

public TranslateTransform ( int dx, int dy ) : bool
dx int
dy int
Результат bool

UseDefaultBrush() публичный Метод

public UseDefaultBrush ( ) : void
Результат void

UseDefaultPen() публичный Метод

public UseDefaultPen ( ) : void
Результат void