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

BltBitMapRastPort

Blit from source bitmap to destination rastport.

Declaration

Source position: agraphics.pas line 2275

procedure BltBitMapRastPort(

  const srcBitMap: pBitMap;

  xSrc: LongInt;

  ySrc: LongInt;

  destRP: pRastPort;

  xDest: LongInt;

  yDest: LongInt;

  xSize: LongInt;

  ySize: LongInt;

  minterm: LongWord

);

Arguments

srcBitMap

  

A pointer to the source bitmap

xSrc

  

X offset into source bitmap

ySrc

  

Y offset into source bitmap

destRP

  

A pointer to the destination rastport

xDest

  

X offset into dest rastport

yDest

  

Y offset into dest rastport

xSize

  

Width of blit in pixels

ySize

  

Height of blit in rows

minterm

  

Minterm to use for this blit see description

Description

Blits from source bitmap to position specified in destination rastport using minterm.

MinTerm:

How to copy. Most useful values are 0x00C0 for a vanilla copy, 0x0030 to invert the source and then copy or 0x0050 to ignore the source and just invert the destination. If you want to calculate other values, then you must know that channel A is set, if you are inside the rectangle, channel B is the source and channel C is the destination of the rectangle.

Bit ABC
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111

So 0x00C0 means: D is set if one is inside the rectangle (A is set) and B (the source) is set and cleared otherwise.

To fill the rectangle, you would want to set D when A is set, so the value is 0x00F0.

See also

BltMaskBitMapRastPort

  

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

ClipBlit

  

Calls BltBitMap() after accounting for windows


Documentation generated on: 2021-07-30