Search
Utilities.SnapToDevicePixel Method (Rect, Visual)
See Also
 





Aligns the specified rect to device pixels.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static Rect SnapToDevicePixel (
    Rect r,
    Visual v
)

Visual Basic  Copy Code

Public Shared Function SnapToDevicePixel( _
    r As Rect, _
    v As Visual _
) As Rect

 Parameters

r
A rectangle.
v
A System.Windows.Media.Visual instance.

 Return Value

A rectangle with coordinates aligned to device pixels.

 See Also