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

InitBitMap

Initialize bit map structure with input values.

Declaration

Source position: agraphics.pas line 2107

procedure InitBitMap(

  Bm: PBitMap;

  Depth: ShortInt;

  Width: Word;

  Height: Word

);

Arguments

Bm

  

A pointer to a BitMap structure

Depth

  

Number of bitplanes that this bitmap will have

Width

  

Number of bits (columns) wide for this BitMap

Height

  

Number of bits (rows) tall for this BitMap

Description

Initialize various elements in the BitMap structure to correctly reflect depth, width, and height. Must be used before use of BitMap in other graphics calls. The Planes[0..7] are not initialized and need to be set up by the caller. The Planes table was put at the end of the structure so that it may be truncated to conserve space, as well as extended. All routines that use BitMap should only depend on existence of depth number of bitplanes. The Flagsh and pad fields are reserved for future use and should not be used by application programs.


Documentation generated on: 2021-07-30