Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AllocRaster

Allocate space for a bitplane.

Declaration

Source position: agraphics.pas line 2259

function AllocRaster(

  width: LongWord;

  height: LongWord

):PByte;

Arguments

width

  

number of columns in bitplane

height

  

number of rows in bitplane

Function result

Pointer to first word in bitplane, or nil if it was not possible to allocate the desired amount of memory.

Description

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).

See also

FreeRaster

  

Release an allocated area to the system free memory pool


Documentation generated on: 2021-07-30