C# Class touchvg.view.WPFCanvasAdapter

Inheritance: touchvg.core.GiCanvas
Exibir arquivo Open project: rhcad/touchvg-v0.6 Class Usage Examples

Public Methods

Method Description
BeginDraw ( System.Windows.Media.DrawingContext dc ) : void
Dispose ( ) : void
EndDraw ( ) : void
WPFCanvasAdapter ( ) : System
beginPath ( ) : void
bezierTo ( float c1x, float c1y, float c2x, float c2y, float x, float y ) : void
clearRect ( float x, float y, float w, float h ) : void
closePath ( ) : void
drawBitmap ( string name, float xc, float yc, float w, float h, float angle ) : void
drawEllipse ( float x, float y, float w, float h, bool stroke, bool fill ) : void
drawHandle ( float x, float y, int type ) : void
drawLine ( float x1, float y1, float x2, float y2 ) : void
drawPath ( bool stroke, bool fill ) : void
drawRect ( float x, float y, float w, float h, bool stroke, bool fill ) : void
drawTextAt ( string text, float x, float y, float h, int align ) : float
lineTo ( float x, float y ) : void
moveTo ( float x, float y ) : void
quadTo ( float cpx, float cpy, float x, float y ) : void
setBrush ( int argb, int style ) : void
setPen ( int argb, float width, int style, float phase ) : void

Method Details

BeginDraw() public method

public BeginDraw ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
return void

Dispose() public method

public Dispose ( ) : void
return void

EndDraw() public method

public EndDraw ( ) : void
return void

WPFCanvasAdapter() public method

public WPFCanvasAdapter ( ) : System
return System

beginPath() public method

public beginPath ( ) : void
return void

bezierTo() public method

public bezierTo ( float c1x, float c1y, float c2x, float c2y, float x, float y ) : void
c1x float
c1y float
c2x float
c2y float
x float
y float
return void

clearRect() public method

public clearRect ( float x, float y, float w, float h ) : void
x float
y float
w float
h float
return void

closePath() public method

public closePath ( ) : void
return void

drawBitmap() public method

public drawBitmap ( string name, float xc, float yc, float w, float h, float angle ) : void
name string
xc float
yc float
w float
h float
angle float
return void

drawEllipse() public method

public drawEllipse ( float x, float y, float w, float h, bool stroke, bool fill ) : void
x float
y float
w float
h float
stroke bool
fill bool
return void

drawHandle() public method

public drawHandle ( float x, float y, int type ) : void
x float
y float
type int
return void

drawLine() public method

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

drawPath() public method

public drawPath ( bool stroke, bool fill ) : void
stroke bool
fill bool
return void

drawRect() public method

public drawRect ( float x, float y, float w, float h, bool stroke, bool fill ) : void
x float
y float
w float
h float
stroke bool
fill bool
return void

drawTextAt() public method

public drawTextAt ( string text, float x, float y, float h, int align ) : float
text string
x float
y float
h float
align int
return float

lineTo() public method

public lineTo ( float x, float y ) : void
x float
y float
return void

moveTo() public method

public moveTo ( float x, float y ) : void
x float
y float
return void

quadTo() public method

public quadTo ( float cpx, float cpy, float x, float y ) : void
cpx float
cpy float
x float
y float
return void

setBrush() public method

public setBrush ( int argb, int style ) : void
argb int
style int
return void

setPen() public method

public setPen ( int argb, float width, int style, float phase ) : void
argb int
width float
style int
phase float
return void