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

AllocRaster

Allocate space for a bitplane.

Declaration

Source position: agraphics.pas line 2124

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