DisplayCanvasTranslateRectToImage Method (Rect)

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

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

public Rect TranslateRectToImage(
	Rect rect
)

Parameters

rect
Type: System.WindowsRect
Rectangle relative to this panel.

Return Value

Type: Rect
Translated rectangle value relative to the image source pixels.
Remarks

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

Reference