IDLgrPrinter::Draw

Syntax | Arguments | Keywords | Version History

The IDLgrPrinter::Draw procedure method draws the given picture to this graphics destination.

Printing in Bitmap or Vector Graphic Mode

The IDLgrPrinter::Draw method VECTOR keyword generates output in bitmap or vector format. The following table shows the keyword options and results for each platform.

Table 31-14: File Types Produced by IDLgrPrinter Draw Method

Keyword Settings
Windows Printer Output
UNIX File Type

VECTOR = 0

Bitmap (BMP)

Encapsulated PostScript (EPS) file (e.g. xprinter.eps)

VECTOR = 1

Enhanced MetaFile (EMF)

Encapsulated PostScript (EPS) file (e.g. xprinter.eps)

Because Windows printer output is usually sent directly to the printer, EMF and BMP files are not viewable. On UNIX, the printer output is usually directed to a file named xprinter.eps by default.

Note
Objects are drawn to the destination device in the order that they are added to the model, view, viewgroup, or scene object that contains them when VECT_SORTING=0. Otherwise, objects are drawn to the destination device based on their average depth value. See Bitmap and Vector Graphic Output (Object Programming) for more information on bitmap and vector output.

Syntax

Obj->[IDLgrPrinter::]Draw [, Picture] [, VECT_SORTING={ 0 | 1 } ] [, VECT_TEXT_RENDER_METHOD={ 0 | 1 } ] [, VECTOR={ 0 | 1 } ]

Arguments

Picture

The view (an instance of an IDLgrView object), viewgroup (an instance of an IDLgrViewgroup object), or scene (an instance of an IDLgrScene object) to be drawn.

Keywords

VECT_SORTING

This keyword has an effect only when generating vector output (VECTOR=1).

This keyword controls the way object primitives in a picture appear in the destination. Valid values are:

VECT_TEXT_RENDER_METHOD

This keyword has an effect only when generating vector output (VECTOR=1).

This keyword controls the way text is rendered in a vector graphic file. Valid values are:

VECTOR

Set this keyword to indicate the type of graphics primitives generated. Valid values are:

Version History

5.0

Introduced

6.1

Added VECT_SORTING, VECT_TEXT_RENDER_METHOD keywords