SKGLView.IgnorePixelScaling Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.