Partilhar via


MultiScaleImage.LogicalToElementPoint Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a point with pixel coordinates relative to the MultiScaleImage from a logical point (values between 0 and 1).

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Function LogicalToElementPoint ( _
    logicalPoint As Point _
) As Point
public Point LogicalToElementPoint(
    Point logicalPoint
)

Parameters

Return Value

Type: System.Windows.Point
A point with pixel coordinates relative to the MultiScaleImage translated from logicalPoint.

Remarks

This method does the opposite of the ElementToLogicalPoint method.

Logical coordinates (also known as normalized coordinates) are between 0 and 1. Using this method, you take a point that uses logical coordinates and translate it into a point with pixel coordinates relative to a location in the MultiScaleImage.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.