Method XbpMetaFile():draw() Foundation
Replays the metafile in a presentation space (display the image).
:draw( [<oPS>], [<nMode>|<aRectangle>] ) --> lSuccess
|XBPMETA_DRAW_INITPS||Initializes the presentation space with the settings used while recording the meta file.|
|XBPMETA_DRAW_SCALE||Scales a meta file to the size of the presentation space.|
|XBPMETA_DRAW_DEFAULT *)||Displays the meta file unaltered in the presentation space.|
This method returns the value .T. (true) if the graphic data from the metafile could be displayed in the specified presentation space, otherwise .F. (false) is returned.
The :draw() method "plays back" a metafile in a presentation space. The graphic information from the metafile is drawn in the presentation space. The metafile must have been previously loaded into memory using the :load() method.
Where the drawing is visible depends on the device context linked to the presentation space. By default, the presentation space of the current window is used and the graphic data from the metafile is displayed on the screen. In order to print a saved drawing, a presentation space must be specified that is linked with a printer device context (see XbpPrinter()).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.