PixelSnapper Class

Syntax

C#

public class PixelSnapper : PixelSnapperBase

VB

Public Class PixelSnapper Inherits PixelSnapperBase

Remarks

Dpi independence can create irregular edge rendering due to anti-aliasing. These artifacts, commonly seen as blurry or semi-transparent edges, can occur when the location of an edge falls in the middle of a device pixel rather than between device pixels. To avoid blurring of visuals in WPF applications, locate them inside the PixelSnapper.