Combines the given rectangle with the current fill pattern.
PatBlt x, y, w, h, mode%
x, y, w, h:floating-point exp
mode%:integer expression
PatBlt x, y, w, h combines the given rectangle with the current fill pattern. mode specifies the type of operation and must take one of the following values:
BLACKNESS | ($00000042) | all "black" bits are set. |
DSTINVERT | ($00550009) | the destination raster bits are inverted. |
PATCOPY | ($00F00021) | the fill pattern is copied to the destination raster. |
PATINVERT | ($005A0049) | the fill pattern is "Xor-ed" with the destination raster. |
WHITENESS | ($00FF0062) | all "white" bits are set. |
OpenW # 1
Local a%
DefFill 30
// a canvas of 50x50
Win_1.ScaleWidth = 50
Win_1.ScaleHeight = 50
// PatBlt uses Me (or Output)
PatBlt 1, 2, 16, 16, PATCOPY
PatBlt is used here to copy the current fill pattern (defined with DefFill) to the screen. The upper left corner is located at (1,2) and the right corner at 17, 18. The PATCOPY mode copies the pattern without any logical operations (And, Or, Xor ...).
PatBlt corresponds to Windows function PatBlt().
{Created by Sjouke Hamstra; Last updated: 21/10/2014 by James Gaite}