Class Context
public class Context : IDisposable
- Inheritance
-
Context
- Implements
- Inherited Members
Constructors
Context(bool)
public Context(bool edgeAntiAlias = true)
Parameters
edgeAntiAlias
bool
Fields
Instance
public static readonly Context Instance
Field Value
Methods
Arc(float, float, float, float, float, Winding)
public void Arc(float cx, float cy, float r, float a0, float a1, Winding dir)
Parameters
ArcTo(float, float, float, float, float)
public void ArcTo(float x1, float y1, float x2, float y2, float radius)
Parameters
BeginPath()
public void BeginPath()
BezierTo(float, float, float, float, float, float)
public void BezierTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
Parameters
Circle(Vector2, float)
public void Circle(Vector2 v, float r)
Parameters
Circle(float, float, float)
public void Circle(float cx, float cy, float r)
Parameters
ClosePath()
public void ClosePath()
CreateImageRGBA(int, int, ImageFlags, byte[])
public int CreateImageRGBA(int w, int h, ImageFlags imageFlags, byte[] data)
Parameters
w
inth
intimageFlags
ImageFlagsdata
byte[]
Returns
CurrentTransform(Matrix32)
public void CurrentTransform(Matrix32 transform)
Parameters
transform
Matrix32
DeleteImage(int)
public void DeleteImage(int image)
Parameters
image
int
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Ellipse(Vector2, float, float)
public void Ellipse(Vector2 v, float rx, float ry)
Parameters
Ellipse(float, float, float, float)
public void Ellipse(float cx, float cy, float rx, float ry)
Parameters
Fill()
public void Fill()
FillColor(Color4)
public void FillColor(Color4 color)
Parameters
color
Color4
FillPaint(Paint)
public void FillPaint(Paint paint)
Parameters
paint
Paint
GlobalAlpha(float)
public void GlobalAlpha(float alpha)
Parameters
alpha
float
ImageSize(int, out int, out int)
public void ImageSize(int image, out int w, out int h)
Parameters
IntersectScissor(Vector2, Vector2)
public void IntersectScissor(Vector2 position, Vector2 size)
Parameters
IntersectScissor(float, float, float, float)
public void IntersectScissor(float x, float y, float w, float h)
Parameters
Line(Vector2, Vector2)
public void Line(Vector2 a, Vector2 b)
Parameters
Line(float, float, float, float)
public void Line(float ax, float ay, float bx, float by)
Parameters
LineCap(LineCap)
public void LineCap(LineCap cap)
Parameters
cap
LineCap
LineJoin(LineCap)
public void LineJoin(LineCap join)
Parameters
join
LineCap
LineTo(Vector2)
public void LineTo(Vector2 v)
Parameters
v
Vector2
LineTo(float, float)
public void LineTo(float x, float y)
Parameters
MiterLimit(float)
public void MiterLimit(float limit)
Parameters
limit
float
MoveTo(Vector2)
public void MoveTo(Vector2 v)
Parameters
v
Vector2
MoveTo(float, float)
public void MoveTo(float x, float y)
Parameters
PathWinding(Solidity)
public void PathWinding(Solidity dir)
Parameters
dir
Solidity
QuadTo(float, float, float, float)
public void QuadTo(float cx, float cy, float x, float y)
Parameters
Rect(Vector2, Vector2)
public void Rect(Vector2 position, Vector2 size)
Parameters
Rect(float, float, float, float)
public void Rect(float x, float y, float w, float h)
Parameters
Reset()
public void Reset()
ResetScissor()
public void ResetScissor()
ResetTransform()
public void ResetTransform()
Restore()
public void Restore()
Rotate(float)
public void Rotate(float angle)
Parameters
angle
float
RoundedRect(Vector2, Vector2, float)
public void RoundedRect(Vector2 position, Vector2 size, float r)
Parameters
RoundedRect(float, float, float, float, float)
public void RoundedRect(float x, float y, float w, float h, float r)
Parameters
RoundedRectVarying(float, float, float, float, float, float, float, float)
public void RoundedRectVarying(float x, float y, float width, float height, float radTopLeft, float radTopRight, float radBottomRight, float radBottomLeft)
Parameters
x
floaty
floatwidth
floatheight
floatradTopLeft
floatradTopRight
floatradBottomRight
floatradBottomLeft
float
Save()
public void Save()
Scale(float, float)
public void Scale(float x, float y)
Parameters
Scissor(Vector2, Vector2)
public void Scissor(Vector2 position, Vector2 size)
Parameters
Scissor(float, float, float, float)
public void Scissor(float x, float y, float w, float h)
Parameters
ShapeAntiAlias(int)
public void ShapeAntiAlias(int enabled)
Parameters
enabled
int
SkewX(float)
public void SkewX(float angle)
Parameters
angle
float
SkewY(float)
public void SkewY(float angle)
Parameters
angle
float
Stroke()
public void Stroke()
StrokeColor(Color4)
public void StrokeColor(Color4 color)
Parameters
color
Color4
StrokePaint(Paint)
public void StrokePaint(Paint paint)
Parameters
paint
Paint
StrokeWidth(float)
public void StrokeWidth(float width)
Parameters
width
float
Transform(Matrix32)
public void Transform(Matrix32 transform)
Parameters
transform
Matrix32
Translate(float, float)
public void Translate(float x, float y)
Parameters
UpdateImage(int, byte[])
public void UpdateImage(int image, byte[] data)