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

BltTemplate

Cookie cut a shape in a rectangle to the RastPort.

Declaration

Source position: agraphics.pas line 2299

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