ScreenToDocument Method of the ZoomViewer Object

This method converts screen coordinates of the specified point into coordinates on the document image.

Syntax

C++

HRESULT ScreenToDocument(
  int  ScreenX,
  int  ScreenY,
  int* DocumentX,
  int* DocumentY
);
    

C#

void ScreenToDocument(
  int     ScreenX,
  int     ScreenY,
  out int DocumentX,
  out int DocumentY
);
    

Visual Basic .NET

Sub ScreenToDocument(
  ScreenX As Integer, _
  ScreenY As Integer, _
  ByRef DocumentX As Integer, _
  ByRef DocumentY As Integer _
)
    

Parameters

ScreenX
[in] Specifies the horizontal coordinate of the point in screen coordinates.
ScreenY
[in] Specifies the vertical coordinate of the point in screen coordinates.
DocumentX
[out] Receives the horizontal coordinate of the point on the document image.
DocumentY
[out] Receives the vertical coordinate of the point on the document image.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

ZoomViewer

DocumentToScreen

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.