Cookie cut a shape in a rectangle to the RastPort.
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 |
); |
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. |
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.
|
Move a rectangular region of bits in a BitMap. |