RemapBrush(id, palid[, t])
id to
the colors of the palette specified by palid. The source brush can either be a
normal or a palette brush. If it is a normal brush, RemapBrush() will also convert
it to a palette brush while remapping so the resulting brush will always be
a palette brush.
The optional table argument t can be used to specify additional options. The
following table tags are currently recognized:
Dither:True to enable or to False to disable dithering. Defaults to True.
Note that if the brush uses transparency, you have to use SetTransparentPen() on the palette first to define a pen that should be made transparent.
CreatePalette(1, {#BLACK, #WHITE}, {Depth = 1})
RemapBrush(1, 1, {Dither = True})
Convert brush 1 to a black & white palette brush. Remapping will be done
with dithering enabled.