Pascal
procedure tsImageFillPattern(ImageID: tsImageID; PatternImageID: tsImageID; X: tsInt; Y: tsInt; ChannelMask: tsBitmask);
C/C++
void tsImageFillPattern(tsImageID ImageID, tsImageID PatternImageID, tsInt X, tsInt Y, tsBitmask ChannelMask);
Fills an image with an second image. The image will be used as pattern and will be repeated. The operation can be affected by the adjusted image modes.
The ID of the image which will be filled with the pattern image.
The image ID which will used for the fill operation.
The horizintal position where the pattern image will be placed. If this value is smaller than zero the position is random.
The vertical position where the pattern image will be placed. If this value is smaller than zero the position is random.
Indicates which channels getting filled. For an list of all available flags look in the table Channelmasks.
If there was no context bound.
If you try to resize an empty image.
This will happen if you pass an invalid ImageID to this function.