Method XbpBitmap():make() Foundation

Requests memory for a new bitmap.

Syntax
:make( [<nXsize>] , [<nYsize>], ;
       [<nPlanes>], [<nBits>] ) --> self
Parameters
<nXsize>
<nXsize> is a numeric value that can be used to specify the number of pixels in x direction (width) for the bitmap created.
<nYsize>
<nYsize> is a numeric value that can be used to specify the number of pixels in y direction (height) for the bitmap created.
<nPlanes>
<nPlanes> specifies the number of bit planes used in the bitmap. The default value is device dependent (it is 1 for most color monitors).
Multi-plane bitmaps are not supported under Windows.
<nBits>
The optional parameter <nBits> specifies the number of bits that are used to code color values in the bitmap. The default value is device dependent (it is 8 for most color monitors). Legal values are 1, 2, 4, 8 and 24 bits. Platform specific color depths are supported but may be converted to true color (24 bits).
Return

This method returns .T. (true) when the memory could be provided for the bitmap, otherwise .F. (false) is returned.

Description

The :make() method requests memory space for a bitmap created in memory. For example, this is used for screen buffering in the graphics mode. Before this method can be called, a presentation space must be created and linked to the XbpBitmap object using the :presSpace()method. Unless this is done, no graphic output of the bitmap can occur.

Feedback

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.