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

BltTemplate

Cookie cut a shape in a rectangle to the RastPort.

Declaration

Source position: agraphics.pas line 2048

procedure BltTemplate(

  const Source: PByte;

  xSrc: LongInt;

  srcMod: LongInt;

  DestRP: PRastPort;

  xDest: LongInt;

  yDest: LongInt;

  xSize: LongInt;

  ySize: LongInt

);

Arguments

Source

  

A pointer to the first (nearest) word of the template mask.

xSrc

  

X bit offset into the template mask (range 0..15).

srcMod

  

Number of bytes per row in template mask.

DestRP

  

A pointer to destination RastPort.

xDest

  

x coordinate of the upper left corner of the destination for the blit.

yDest

  

y coordinate of the upper left corner of the destination for the blit.

xSize

  

x size of the rectangle to be used as the template.

ySize

  

y size of the rectangle to be used as the template.

Description

This function draws the image in the template into the RastPort in the current color and drawing mode at the specified position. The template is assumed not to overlap the destination. If the template falls outside the RastPort boundary, it is truncated to that boundary.

Note:

The SrcTemplate pointer should point to the "nearest" word (rounded down) of the template mask. Fine alignment of the mask is achieved by setting the SrcX bit offseet within the range of 0 to 15 decimal.

See also

BltBitMap

  

Move a rectangular region of bits in a BitMap.


Documentation generated on: 2021-07-30