Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void GBitmap::borrow_data ( unsigned char &  data,
int  w,
int  h 
) [inline]

Initializes this GBitmap by borrowing a memory segment. The GBitmap then directly addresses the memory buffer data# provided by the user. This buffer must be large enough to hold w*h# bytes representing each one pixel. The GBitmap object does not ``own'' the buffer: you must explicitly de-allocate the buffer using operator delete []#. This de-allocation should take place after the destruction or the re-initialization of the GBitmap object.

Definition at line 659 of file GBitmap.h.

References donate_data().


Generated by  Doxygen 1.6.0   Back to index