Method XbpPresSpace():create() Foundation
Creates a presentation space for a device context.
:create( [<oDevice>] , ; [<aPageSize>], [<nUnits>] ) --> self
|GRA_PU_ARBITRARY||Any unit. The coordinate system is scaled to the viewport.|
|GRA_PU_PIXEL *)||Unit is a pixel|
|GRA_PU_LOMETRIC||Unit is 0.1 millimeter|
|GRA_PU_HIMETRIC||Unit is 0.01 millimeter|
|GRA_PU_LOENGLISH||Unit is 0.01 inch|
|GRA_PU_HIENGLISH||Unit is 0.001 inch|
|GRA_PU_TWIPS||Unit is 1/1440 inch|
This method returns the object executing the method (self).
The :create() method requests a presentation space from the operating system. Graphic output can occur using the XbpPresSpace object only after this method is executed. If the parameter <oDevice> is not specified, output can occur in the presentation space, but it is not visible. Graphic output is only visible if the presentation space is linked to a device context.
If the <aPageSize> parameter is not specified, the page is dimensioned to the size of the device context. In this case, the page has the same size like the view port. The page size can also be defined using the method :setPageSize().
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.