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

BltBitMaPRastPort

Blit from source bitmap to destination rastport.

Declaration

Source position: agraphics.pas line 2394

function BltBitMaPRastPort(

  const SrcBitMap: PBitMap;

  XSrc: LongInt;

  YSrc: LongInt;

  DestRP: PRastPort;

  XDest: LongInt;

  YDest: LongInt;

  XSize: LongInt;

  YSize: LongInt;

  Minterm: LongWord

):LongBool;

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