DrawPage method (ILEADRasterDocument)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short DrawPage (IDispatch *pRaster, long hDC, short iPageIndex);

Overview

Refer to Drawing Pages and Zones

Remarks

Displays the specified page with or without its zones, at any size, to any device context (screen, printer, or memory DC). If the display surface has fewer colors than the image, this method dithers the output to that display surface without affecting the actual image data.

Before calling this method, the page that will be drawn must be activated by setting the ActivePageIndex property to the appropriate index.

If the ActivePageIndex property is not set to the appropriate page index before calling this method, this method will return the ERROR_DOC_ACTIVE_PAGE error.

See Also

Elements:

ActivePageIndex property, DrawPersistence property, EnableShowZones property, SelectedZonePenColor property, SelectedZonePenStyle property, SelectedZonePenWidth property, UpdatePage method, UpdateZoneArea method, SelectZoneByPoint method, SelectZone method, SetZonePen method, SetSelectedZonePen method, SelectedZone property, RemoveSelectedZone method, ZonePenColor property, ZonePenStyle property, ZonePenWidth property

Topics:

Quick Reference OCR: Drawing Pages and Zones