ICanvasContext Interface

ICanvasContext interface

Represents the context of an HTML canvas 2D drawing.

public interface ICanvasContext

Properties

NameDescription
CharacterSpacing { get; set; }Gets or sets the character spacing.
FillBrush { get; set; }Gets or sets the fill brush. See IBrush.
Font { get; set; }Gets or sets the font. See ITrueTypeFont.
FontSize { get; set; }Gets or sets the font size.
FontStyle { get; set; }Gets or sets the font style.
FontValue { get; set; }Gets or sets the font value.
GlobalAlpha { get; set; }Gets or sets the global alpha value.
GlobalCompositeOperation { get; set; }Gets or sets the global composite operation.
ImageSmoothingEnabled { get; set; }Gets or sets a value indicating whether image smoothing is enabled.
LetterSpacing { get; set; }Gets or sets the letter spacing.
LineCap { get; set; }Gets or sets the line cap style. See StrokeLineCap.
LineDashOffset { get; set; }Gets or sets the line dash offset.
LineDashPattern { get; set; }Gets or sets the line dash pattern.
LineJoin { get; set; }Gets or sets the line join style. See StrokeLineJoin.
LineWidth { get; set; }Gets or sets the line width.
MiterLimit { get; set; }Gets or sets the miter limit.
ShadowBlur { get; set; }Gets or sets the blur level of the shadow.
ShadowColor { get; set; }Gets or sets the color of the shadow.
ShadowColorString { get; set; }Gets or sets the string representation of the shadow color.
ShadowOffsetX { get; set; }Gets or sets the horizontal offset of the shadow.
ShadowOffsetY { get; set; }Gets or sets the vertical offset of the shadow.
StrokeBrush { get; set; }Gets or sets the stroke brush. See IBrush.
TextAlign { get; set; }Gets or sets the alignment of text.
TextBaseline { get; set; }Gets or sets the baseline alignment of text.
TextInfo { get; }Gets the text information. See TextInfo.
TransformationMatrix { get; set; }Gets or sets the transformation matrix. See IMatrix.

Methods

NameDescription
Transform(IMatrix)Applies a transformation matrix to the context. See IMatrix.

See Also