Allocate space for a bitplane.
Source position: agraphics.pas line 2375
function AllocRaster( |
Width: LongWord; |
Height: LongWord |
):PByte; |
Width |
|
number of columns in bitplane |
Height |
|
number of rows in bitplane |
Pointer to first word in bitplane, or nil if it was not possible to allocate the desired amount of memory.
This function calls the memory allocation routines to allocate memory space for a bitplane "width" bits wide and "height" bits high.
In order to assure proper alignment of display memory, the AllocBitMap() function should be used instead of AllocRaster when you wish to allocate display memory (rasters which are attached to a ViewPort or Screen).
|
Release an allocated area to the system free memory pool |