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

TBitMap

Represents an image in ram.

Declaration

Source position: agraphics.pas line 59

type TBitMap = record

  BytesPerRow: Word;

  

Width of a line it Bytes (To get the width of the Bitmap in pixels you have to multiply this value with 8 and divide by the Depth.)

  Rows: Word;

  

Number of lines in the Bitmap

  Flags: Byte;

  

Flags for the bitmap when created on AllocBitmap (BMF_*)

  Depth: Byte;

  

Number of Bitplanes

  Pad: Word;

  

Padding byte

  Planes: array [0..7] of PByte;

  

Pointer to the bitplanes. Depth defines how many pointers

end;

Description

Drawing to a Bitmap is mostly done by drawing on a TRastPort with the linked Bitmap TRastPort.Bitmap.

See also

AllocBitmap

  

Allocate a bitmap and attach bitplanes to it.

FreeBitmap

  

Free a bitmap created by AllocBitMap()

AllocSpriteDataA

  

Allocate sprite data and convert from a bitmap.

BltBitMap

  

Move a rectangular region of bits in a BitMap.

BltBitMapRastPort

  

Blit from source bitmap to destination rastport.

BltMaskBitMapRastPort

  

Blit from source bitmap to destination rastport with masking of source image.

ChangeVPBitmap

  

Change display memory address for multi-buffered animation

GetBitMapAttr

  

Returns information about a bitmap

InitBitMap

  

Initialize bit map structure with input values.

TRastPort

  

Basic structure for all drawing actions


Documentation generated on: 2021-07-30