bmap_fill (BMAP* bmap,COLOR* color,var alpha);
Fills a bmap with a given color and alpha transparency value.
Parameters:
| bmap |
target bmap. |
| color |
the fill color, BGR vector. |
| alpha |
the fill alpha value in percent. |
Speed:
Medium
Remarks
- The bmap does not need to be locked.
- Only normal 16, 24, or 32 bit bmaps (1555, 4444, 888, or 8888 format) can
be filled. Bmaps in a special format, compressed DDS bmaps, or bmaps used
as render target can not be modified.
Example:
// fill a bmap with semitransparent blue
bmap_fill(my_bmap,vector(255,0,0),50);
See also:
bmap_unlock, bmap_lock, pixel_for_bmap, pixel_for_vec