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

ClipBlit

Calls BltBitMap() after accounting for windows

Declaration

Source position: agraphics.pas line 2289

procedure ClipBlit(

  srcRP: pRastPort;

  xSrc: LongInt;

  ySrc: LongInt;

  destRP: pRastPort;

  xDest: LongInt;

  yDest: LongInt;

  xSize: LongInt;

  ySize: LongInt;

  minterm: LongWord

);

Arguments

srcRP

  

A pointer to the RastPort of the source for your blit

xSrc

  

The left offset into Src for your data

ySrc

  

The top offset into Src for your data

destRP

  

A pointer to the RastPort to receive the blitted data

xDest

  

The left offset into the destination RastPort

yDest

  

The top offset into the destination RastPort

xSize

  

the width of the blit (must be ta least 1)

ySize

  

the height of the blit (must be at least 1)

minterm

  

the boolean blitter function, where SRCB is associated with the Src RastPort and SRCC goes to the Dest RastPort. see BltBitMap

Description

Performs the same function as BltBitMap(), except that it takes into account the Layers and ClipRects of the layer library, all of which are (and should be) transparent to you. So, whereas BltBitMap() requires pointers to BitMaps, ClipBlit requires pointers to the RastPorts that contain the Bitmaps, Layers, etcetera.

If you are going to blit blocks of data around via the RastPort of your Intuition Window, you must call this routine (rather than BltBitMap()).

Either the Src RastPort, the Dest RastPort, both, or neither, can have Layers. This routine takes care of all cases.

See BltBitMap() for a thorough explanation.

See also

BltBitMap

  

Move a rectangular region of bits in a BitMap.


Documentation generated on: 2021-07-30