> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DocumentToScreen Method of the ZoomViewer Object

> DocumentToScreen method of the ZoomViewer Object in ABBYY FineReader Engine Visual Components on Windows — This method converts coordinates of the specified point on the document image into screen coordinates.

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

## Syntax

### C++

```cpp theme={null}
HRESULT DocumentToScreen(
  int  DocumentX,
  int  DocumentY,
  int* ScreenX,
  int* ScreenY
);
```

### C\#

```csharp theme={null}
void DocumentToScreen(
  int     DocumentX,
  int     DocumentY,
  out int ScreenX,
  out int ScreenY
);
```

### Visual Basic .NET

```vb theme={null}
Sub DocumentToScreen( _
  DocumentX As Integer, _
  DocumentY As Integer, _
  ByRef ScreenX As Integer, _
  ByRef ScreenY As Integer _
)
```

## Parameters

DocumentX

\[in] Specifies the horizontal coordinate of the point on the document image.

DocumentY

\[in] Specifies the vertical coordinate of the point on the document image.

ScreenX

\[out] Receives the horizontal coordinate of the point in screen coordinates.

ScreenY

\[out] Receives the vertical coordinate of the point in screen coordinates.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[ZoomViewer](/fine-reader/engine/visual-components-reference/zoomviewer)

[ScreenToDocument](/fine-reader/engine/visual-components-reference/zoomviewer/screentodocument-method)
