ICanvasRenderingContext2D Properties |
The ICanvasRenderingContext2D type exposes the following members.
Name | Description | |
---|---|---|
![]() | Canvas |
A read-only back-reference to the HTMLCanvasElement. Might be null if it is not associated with a canvas element.
|
![]() | FillStyle |
Color or style to use inside shapes. Default: (black).
|
![]() | Font |
Font setting. Default value 10px sans-serif
(Inherited from ICanvasDrawingStyles.) |
![]() | GlobalAlpha |
Alpha value that is applied to shapes and images before they are composited onto the canvas. Default 1.0 (opaque).
|
![]() | GlobalCompositeOperation |
With globalAlpha applied this sets how shapes and images are drawn onto the existing bitmap. Default: (source-over)
|
![]() | ImageSmoothingEnabled |
Image smoothing mode; if disabled, images will not be smoothed if scaled.
|
![]() | LineCap |
Type of endings on the end of lines. Possible values: butt (default), round, square.
(Inherited from ICanvasDrawingStyles.) |
![]() | LineDashOffset |
Specifies where to start a dash array on a line.
(Inherited from ICanvasDrawingStyles.) |
![]() | LineJoin |
Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).
(Inherited from ICanvasDrawingStyles.) |
![]() | LineWidth |
Width of lines. Default 1.0
(Inherited from ICanvasDrawingStyles.) |
![]() | MiterLimit |
Miter limit ratio. Default 10.
(Inherited from ICanvasDrawingStyles.) |
![]() | ShadowBlur |
Specifies the blurring effect. Default 0
|
![]() | ShadowColor |
Color of the shadow. Default fully-transparent black.
|
![]() | ShadowOffsetX |
Horizontal distance the shadow will be offset. Default 0.
|
![]() | ShadowOffsetY |
Vertical distance the shadow will be offset. Default 0.
|
![]() | StrokeStyle |
Color or style to use for the lines around shapes. Default: (black).
|
![]() | TextAlign |
Text alignment setting. Possible values: start (default), end, left, right or center.
(Inherited from ICanvasDrawingStyles.) |
![]() | TextBaseline |
Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.
(Inherited from ICanvasDrawingStyles.) |