CanvasRenderingContext2DSettings Class
The options of the rendering contexts of a canvas (https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2dsettings): the second argument of getContext(). The bitmaprenderer contexts only use CanvasRenderingContext2DSettings.Alpha (https://html.spec.whatwg.org/multipage/canvas.html#imagebitmaprenderingcontextsettings).
public sealed class CanvasRenderingContext2DSettingsConstructors
| Name | Description |
|---|---|
| CanvasRenderingContext2DSettings() |
CanvasRenderingContext2DSettings()
CanvasTypes.cspublic CanvasRenderingContext2DSettings()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alpha | Gets whether the canvas has an alpha channel (an opaque canvas is initially opaque black). |
| ColorSpace | Gets the color space of the bitmap. |
| ColorType | Gets the type of the components of the pixels. |
| Desynchronized | Gets whether the canvas may be presented without synchronization with the event loop (no effect on the drawing). |
| WillReadFrequently | Gets whether the pixels will be read often (a hint to keep the bitmap in memory). |
Alpha
CanvasTypes.csGets whether the canvas has an alpha channel (an opaque canvas is initially opaque black).
public bool Alpha { get; init; }ColorSpace
CanvasTypes.csGets the color space of the bitmap.
public PredefinedColorSpace ColorSpace { get; init; }ColorType
CanvasTypes.csGets the type of the components of the pixels.
public CanvasColorType ColorType { get; init; }Desynchronized
CanvasTypes.csGets whether the canvas may be presented without synchronization with the event loop (no effect on the drawing).
public bool Desynchronized { get; init; }WillReadFrequently
CanvasTypes.csGets whether the pixels will be read often (a hint to keep the bitmap in memory).
public bool WillReadFrequently { get; init; }