Edit

SKGLView.IgnorePixelScaling Property

Definition

Gets or sets a value indicating whether the canvas should ignore the device pixel ratio.

[Microsoft.AspNetCore.Components.Parameter]
public bool IgnorePixelScaling { get; set; }

Property Value

true to use logical pixels matching the CSS size; false to use physical pixels scaled by the DPI.

Attributes

Remarks

When false (the default), the canvas is scaled to match the physical pixel density, resulting in sharper rendering on high-DPI displays. When true, drawing coordinates match the CSS pixel size.

Applies to