C# Class System.Html.Media.Graphics.CanvasRenderingContext2D

Mostrar archivo Open project: Saltarelle/SaltarelleWeb Class Usage Examples

Private Properties

Property Type Description
CanvasRenderingContext2D System.Runtime.CompilerServices

Public Methods

Method Description
AddHitRegion ( ) : void
AddHitRegion ( HitRegionOptions options ) : void
Arc ( double x, double y, double radius, double startAngle, double endAngle ) : void
Arc ( double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise ) : void
ArcTo ( double x1, double y1, double x2, double y2, double radius ) : void
BeginPath ( ) : void
BezierCurveTo ( double cp1x, double cp1y, double cp2x, double cp2y, double x, double y ) : void
ClearRect ( double x, double y, double w, double h ) : void
Clip ( ) : void
Clip ( CanvasWindingRule winding ) : void
Clip ( Path2D path ) : void
Clip ( Path2D path, CanvasWindingRule winding ) : void
ClosePath ( ) : void
CreateImageData ( ImageData imagedata ) : ImageData
CreateImageData ( double sw, double sh ) : ImageData
CreateLinearGradient ( double x0, double y0, double x1, double y1 ) : CanvasGradient
CreatePattern ( TypeOption image, string repetition ) : CanvasPattern
CreateRadialGradient ( double x0, double y0, double r0, double x1, double y1, double r1 ) : CanvasGradient
DrawCustomFocusRing ( Element element ) : bool
DrawFocusIfNeeded ( Element element ) : void
DrawImage ( TypeOption image, double dx, double dy ) : void
DrawImage ( TypeOption image, double dx, double dy, double dw, double dh ) : void
DrawImage ( TypeOption image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh ) : void
Fill ( ) : void
Fill ( CanvasWindingRule winding ) : void
Fill ( Path2D path ) : void
Fill ( Path2D path, CanvasWindingRule winding ) : void
FillRect ( double x, double y, double w, double h ) : void
FillText ( string text, double x, double y ) : void
FillText ( string text, double x, double y, double maxWidth ) : void
GetImageData ( double sx, double sy, double sw, double sh ) : ImageData
GetLineDash ( ) : double[]
IsPointInPath ( Path2D path, double x, double y ) : bool
IsPointInPath ( Path2D path, double x, double y, CanvasWindingRule winding ) : bool
IsPointInPath ( double x, double y ) : bool
IsPointInPath ( double x, double y, CanvasWindingRule winding ) : bool
IsPointInStroke ( Path2D path, double x, double y ) : bool
IsPointInStroke ( double x, double y ) : bool
LineTo ( double x, double y ) : void
MeasureText ( string text ) : TextMetrics
MoveTo ( double x, double y ) : void
PutImageData ( ImageData imagedata, double dx, double dy ) : void
PutImageData ( ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight ) : void
QuadraticCurveTo ( double cpx, double cpy, double x, double y ) : void
Rect ( double x, double y, double w, double h ) : void
RemoveHitRegion ( string id ) : void
Restore ( ) : void
Rotate ( double angle ) : void
Save ( ) : void
Scale ( double x, double y ) : void
SetLineDash ( double segments ) : void
SetTransform ( double a, double b, double c, double d, double e, double f ) : void
Stroke ( ) : void
Stroke ( Path2D path ) : void
StrokeRect ( double x, double y, double w, double h ) : void
StrokeText ( string text, double x, double y ) : void
StrokeText ( string text, double x, double y, double maxWidth ) : void
Transform ( double a, double b, double c, double d, double e, double f ) : void
Translate ( double x, double y ) : void

Private Methods

Method Description
CanvasRenderingContext2D ( ) : System.Runtime.CompilerServices

Method Details

AddHitRegion() public method

public AddHitRegion ( ) : void
return void

AddHitRegion() public method

public AddHitRegion ( HitRegionOptions options ) : void
options HitRegionOptions
return void

Arc() public method

public Arc ( double x, double y, double radius, double startAngle, double endAngle ) : void
x double
y double
radius double
startAngle double
endAngle double
return void

Arc() public method

public Arc ( double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise ) : void
x double
y double
radius double
startAngle double
endAngle double
anticlockwise bool
return void

ArcTo() public method

public ArcTo ( double x1, double y1, double x2, double y2, double radius ) : void
x1 double
y1 double
x2 double
y2 double
radius double
return void

BeginPath() public method

public BeginPath ( ) : void
return void

BezierCurveTo() public method

public BezierCurveTo ( double cp1x, double cp1y, double cp2x, double cp2y, double x, double y ) : void
cp1x double
cp1y double
cp2x double
cp2y double
x double
y double
return void

ClearRect() public method

public ClearRect ( double x, double y, double w, double h ) : void
x double
y double
w double
h double
return void

Clip() public method

public Clip ( ) : void
return void

Clip() public method

public Clip ( CanvasWindingRule winding ) : void
winding CanvasWindingRule
return void

Clip() public method

public Clip ( Path2D path ) : void
path Path2D
return void

Clip() public method

public Clip ( Path2D path, CanvasWindingRule winding ) : void
path Path2D
winding CanvasWindingRule
return void

ClosePath() public method

public ClosePath ( ) : void
return void

CreateImageData() public method

public CreateImageData ( ImageData imagedata ) : ImageData
imagedata ImageData
return ImageData

CreateImageData() public method

public CreateImageData ( double sw, double sh ) : ImageData
sw double
sh double
return ImageData

CreateLinearGradient() public method

public CreateLinearGradient ( double x0, double y0, double x1, double y1 ) : CanvasGradient
x0 double
y0 double
x1 double
y1 double
return CanvasGradient

CreatePattern() public method

public CreatePattern ( TypeOption image, string repetition ) : CanvasPattern
image TypeOption
repetition string
return CanvasPattern

CreateRadialGradient() public method

public CreateRadialGradient ( double x0, double y0, double r0, double x1, double y1, double r1 ) : CanvasGradient
x0 double
y0 double
r0 double
x1 double
y1 double
r1 double
return CanvasGradient

DrawCustomFocusRing() public method

public DrawCustomFocusRing ( Element element ) : bool
element Element
return bool

DrawFocusIfNeeded() public method

public DrawFocusIfNeeded ( Element element ) : void
element Element
return void

DrawImage() public method

public DrawImage ( TypeOption image, double dx, double dy ) : void
image TypeOption
dx double
dy double
return void

DrawImage() public method

public DrawImage ( TypeOption image, double dx, double dy, double dw, double dh ) : void
image TypeOption
dx double
dy double
dw double
dh double
return void

DrawImage() public method

public DrawImage ( TypeOption image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh ) : void
image TypeOption
sx double
sy double
sw double
sh double
dx double
dy double
dw double
dh double
return void

Fill() public method

public Fill ( ) : void
return void

Fill() public method

public Fill ( CanvasWindingRule winding ) : void
winding CanvasWindingRule
return void

Fill() public method

public Fill ( Path2D path ) : void
path Path2D
return void

Fill() public method

public Fill ( Path2D path, CanvasWindingRule winding ) : void
path Path2D
winding CanvasWindingRule
return void

FillRect() public method

public FillRect ( double x, double y, double w, double h ) : void
x double
y double
w double
h double
return void

FillText() public method

public FillText ( string text, double x, double y ) : void
text string
x double
y double
return void

FillText() public method

public FillText ( string text, double x, double y, double maxWidth ) : void
text string
x double
y double
maxWidth double
return void

GetImageData() public method

public GetImageData ( double sx, double sy, double sw, double sh ) : ImageData
sx double
sy double
sw double
sh double
return ImageData

GetLineDash() public method

public GetLineDash ( ) : double[]
return double[]

IsPointInPath() public method

public IsPointInPath ( Path2D path, double x, double y ) : bool
path Path2D
x double
y double
return bool

IsPointInPath() public method

public IsPointInPath ( Path2D path, double x, double y, CanvasWindingRule winding ) : bool
path Path2D
x double
y double
winding CanvasWindingRule
return bool

IsPointInPath() public method

public IsPointInPath ( double x, double y ) : bool
x double
y double
return bool

IsPointInPath() public method

public IsPointInPath ( double x, double y, CanvasWindingRule winding ) : bool
x double
y double
winding CanvasWindingRule
return bool

IsPointInStroke() public method

public IsPointInStroke ( Path2D path, double x, double y ) : bool
path Path2D
x double
y double
return bool

IsPointInStroke() public method

public IsPointInStroke ( double x, double y ) : bool
x double
y double
return bool

LineTo() public method

public LineTo ( double x, double y ) : void
x double
y double
return void

MeasureText() public method

public MeasureText ( string text ) : TextMetrics
text string
return TextMetrics

MoveTo() public method

public MoveTo ( double x, double y ) : void
x double
y double
return void

PutImageData() public method

public PutImageData ( ImageData imagedata, double dx, double dy ) : void
imagedata ImageData
dx double
dy double
return void

PutImageData() public method

public PutImageData ( ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight ) : void
imagedata ImageData
dx double
dy double
dirtyX double
dirtyY double
dirtyWidth double
dirtyHeight double
return void

QuadraticCurveTo() public method

public QuadraticCurveTo ( double cpx, double cpy, double x, double y ) : void
cpx double
cpy double
x double
y double
return void

Rect() public method

public Rect ( double x, double y, double w, double h ) : void
x double
y double
w double
h double
return void

RemoveHitRegion() public method

public RemoveHitRegion ( string id ) : void
id string
return void

Restore() public method

public Restore ( ) : void
return void

Rotate() public method

public Rotate ( double angle ) : void
angle double
return void

Save() public method

public Save ( ) : void
return void

Scale() public method

public Scale ( double x, double y ) : void
x double
y double
return void

SetLineDash() public method

public SetLineDash ( double segments ) : void
segments double
return void

SetTransform() public method

public SetTransform ( double a, double b, double c, double d, double e, double f ) : void
a double
b double
c double
d double
e double
f double
return void

Stroke() public method

public Stroke ( ) : void
return void

Stroke() public method

public Stroke ( Path2D path ) : void
path Path2D
return void

StrokeRect() public method

public StrokeRect ( double x, double y, double w, double h ) : void
x double
y double
w double
h double
return void

StrokeText() public method

public StrokeText ( string text, double x, double y ) : void
text string
x double
y double
return void

StrokeText() public method

public StrokeText ( string text, double x, double y, double maxWidth ) : void
text string
x double
y double
maxWidth double
return void

Transform() public method

public Transform ( double a, double b, double c, double d, double e, double f ) : void
a double
b double
c double
d double
e double
f double
return void

Translate() public method

public Translate ( double x, double y ) : void
x double
y double
return void