version 6.0
DR Objects to bitmap (area; scope; option) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1=All objects | |
| 0=Selected objects | |||
| >0=ID | |||
| option | Integer | Option for converting the objects in Scope (0, 1, or 2) | |
| Function result | Longint | Object ID |
Description
The command DR Objects to bitmap changes the objects specified by area and scope to a bitmap.
If option equals 0, the function converts objects in scope to a black and white bitmap.
If option equals 1, the function converts objects in scope to a color bitmap with a transparent background.
If option equals 2, the function converts objects in scope to a color bitmap with a white background.
In both cases, the function returns the ID number of the object of type Picture created by DR Objects to bitmap.
The color bitmap uses the number of colors selected in the Monitor control panel. The color bitmap is automatically converted to an object of type Picture; so, if a different number of colors is chosen in the Monitor control panel, the bitmap image will not be affected.
Note: Converting objects to a bitmapped image is irreversible. The bitmapped image loses all of its former attributes, including its name.
See Also