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





Finds the device pixel nearest to the specified point.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static Point SnapToDevicePixel (
    Point itemPoint,
    Visual v
)

Visual Basic  Copy Code

Public Shared Function SnapToDevicePixel( _
    itemPoint As Point, _
    v As Visual _
) As Point

 Parameters

itemPoint

A point to align to the nearest pixel.

v
A System.Windows.Media.Visual instance.

 Return Value

A Point containing the nearest pixel coordinates.

 See Also