Table of Contents

Constructor CanvasCreateParams

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CanvasCreateParams()

Initializes a new instance of the Graphics.CanvasCreateParams class.

public CanvasCreateParams()

CanvasCreateParams(float?)

Initializes a new instance of the Graphics.CanvasCreateParams class with the specified scale factor.

public CanvasCreateParams(float? scaleFactor)

Parameters

scaleFactor float?

The scale factor to be applied to the canvas measurements. If null, a default scale factor will be used.

CanvasCreateParams(float?, ControlRenderingFlags)

Initializes a new instance of the Graphics.CanvasCreateParams class with the specified scale factor and control rendering flags.

public CanvasCreateParams(float? scaleFactor, ControlRenderingFlags controlRenderingFlags)

Parameters

scaleFactor float?

An optional scaling factor to be applied to the canvas. If null, no scaling is applied.

controlRenderingFlags ControlRenderingFlags

Flags that specify how controls should be rendered on the canvas.