C# Class Processing.PDirect2DRenderer

Inheritance: PRenderer
Exibir arquivo Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
Arc ( float x, float y, float width, float height, float startRadians, float endRadians ) : void
Bezier ( int x1, int y1, int cx1, int cy1, int cx2, int cy2, int x2, int y2 ) : void
ClearToColor ( color c ) : void
Ellipse ( int left, int top, int right, int bottom ) : void
Line ( float x1, float y1, float x2, float y2 ) : void
PDirect2DRenderer ( IntPtr winHandle ) : System
PolyLine ( Point2I pts ) : void
Polygon ( Point2I pts ) : void
Rectangle ( float x, float y, float width, float height ) : void
Resize ( int w, int h ) : void
SetBrush ( IBrush brush ) : void
SetPen ( IPen pen ) : void
SetPixel ( float x, float y, color c ) : void
StrokeAndFillTriangle ( float x1, float y1, float x2, float y2, float x3, float y3 ) : void

Private Methods

Method Description
CreateDeviceResources ( ) : void

This method creates the render target and associated D2D and DWrite resources

CreateFactories ( ) : void
SetRenderMode ( RenderModes rm ) : void

Method Details

Arc() public method

public Arc ( float x, float y, float width, float height, float startRadians, float endRadians ) : void
x float
y float
width float
height float
startRadians float
endRadians float
return void

Bezier() public method

public Bezier ( int x1, int y1, int cx1, int cy1, int cx2, int cy2, int x2, int y2 ) : void
x1 int
y1 int
cx1 int
cy1 int
cx2 int
cy2 int
x2 int
y2 int
return void

ClearToColor() public method

public ClearToColor ( color c ) : void
c color
return void

Ellipse() public method

public Ellipse ( int left, int top, int right, int bottom ) : void
left int
top int
right int
bottom int
return void

Line() public method

public Line ( float x1, float y1, float x2, float y2 ) : void
x1 float
y1 float
x2 float
y2 float
return void

PDirect2DRenderer() public method

public PDirect2DRenderer ( IntPtr winHandle ) : System
winHandle System.IntPtr
return System

PolyLine() public method

public PolyLine ( Point2I pts ) : void
pts NewTOAPIA.Graphics.Point2I
return void

Polygon() public method

public Polygon ( Point2I pts ) : void
pts NewTOAPIA.Graphics.Point2I
return void

Rectangle() public method

public Rectangle ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

Resize() public method

public Resize ( int w, int h ) : void
w int
h int
return void

SetBrush() public method

public SetBrush ( IBrush brush ) : void
brush IBrush
return void

SetPen() public method

public SetPen ( IPen pen ) : void
pen IPen
return void

SetPixel() public method

public SetPixel ( float x, float y, color c ) : void
x float
y float
c color
return void

StrokeAndFillTriangle() public method

public StrokeAndFillTriangle ( float x1, float y1, float x2, float y2, float x3, float y3 ) : void
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
return void