DisplayCanvasTranslateRectFromImage Method (Rect)

CVB.Net Documentation
Translates a rect relative to the ImageSource content pixels to coordinates relative to this panel.

Namespace:  Stemmer.Cvb.Wpf.Controls
Assembly:  Stemmer.Cvb.Wpf (in Stemmer.Cvb.Wpf.dll) Version: 14.0.0.0
Syntax

public Rect TranslateRectFromImage(
	Rect rect
)

Parameters

rect
Type: System.WindowsRect
Rectangle relative to the image source pixels.

Return Value

Type: Rect
Translated rectangle value relative to this panel.
Remarks

Dependent on the ActualZoomFactor the translated coordinates may contain fractions. This method behaves as if you would call
TranslateRectFromImage(point, CoordinateSystemType.PixelCoordinates)
.
See Also

Reference