Back to Devexpress

PictureEdit.ViewportToImage(Point) Method

windowsforms-devexpress-dot-xtraeditors-dot-pictureedit-dot-viewporttoimage-x28-system-dot-drawing-dot-point-x29.md

latest1.7 KB
Original Source

PictureEdit.ViewportToImage(Point) Method

Converts the viewport coordinates to the source image coordinates, taking into account the current zoom level and scroll position.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Point ViewportToImage(
    Point pt
)
vb
Public Function ViewportToImage(
    pt As Point
) As Point

Parameters

NameTypeDescription
ptPoint

The viewport coordinates to be converted.

|

Returns

TypeDescription
Point

The source image coordinates.

|

Remarks

The opposite conversion is performed by the PictureEdit.ImageToViewport method.

See Also

ZoomPercent

ViewportToImage(Point)

PictureEdit Class

PictureEdit Members

DevExpress.XtraEditors Namespace