Buffer Objects

Objects of the IDLgrBuffer class represent a memory buffer into which graphics hierarchies can be rendered. Object trees can be drawn to instances of the IDLgrBuffer object and the resulting image can be retrieved from the buffer using the Read() method. The off-screen representation avoids dithering artifacts by providing a full-resolution buffer for objects using either the RGB or Color Index color models.

Creating Buffer Objects

The IDLgrBuffer::Init method takes no arguments. Use the following statement to create a buffer object:

myBuffer = OBJ_NEW('IDLgrBuffer') 

This creates an object that is available as a destination device to be rendered into or copied from.

See "IDLgrBuffer" (IDL Reference Guide) for details on creating and using buffer objects.