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

ClipBlit

Calls BltBitMap() after accounting for windows

Declaration

Source position: agraphics.pas line 2385

procedure ClipBlit(

  SrcRP: PRastPort;

  XSrc: LongInt;

  ySrc: LongInt;

  DestRP: PRastPort;

  XDest: LongWord;

  YDest: LongWord;

  XSize: LongWord;

  YSize: LongWord;

  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