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

ClipBlit

Calls BltBitMap() after accounting for windows

Declaration

Source position: agraphics.pas line 2134

procedure ClipBlit(

  SrcRP: PRastPort;

  xSrc: LongInt;

  ySrc: LongInt;

  DestRP: PRastPort;

  xDest: LongInt;

  yDest: LongInt;

  xSize: LongInt;

  ySize: LongInt;

  MinTerm: Byte

);

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