Cookie cut a shape in a rectangle to the RastPort.
Source position: agraphics.pas line 1984
procedure BltTemplate( |
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. |