CompositionSurfaceBrush.SnapToPixels CompositionSurfaceBrush.SnapToPixels CompositionSurfaceBrush.SnapToPixels CompositionSurfaceBrush.SnapToPixels Property

Definition

Gets or sets a value that indicates whether the surface brush aligns with pixels.

public : Platform::Boolean SnapToPixels { get; set; }
bool SnapToPixels();

void SnapToPixels(bool snaptopixels);
public bool SnapToPixels { get; set; }
Public ReadWrite Property SnapToPixels As bool

Property Value

bool bool

true if the surface brush aligns with pixels; otherwise, false.

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)