fill_image


(fill_image  x  y  width  height  color)

This function fills a rectangle [x,y - width,height] in the active DCL image tile with specified color.

Arguments

x  the x coordinate of the upper-left corner to be filled

y  the y coordinate of the upper-left corner to be filled

width  the width of the area to be filled

height  the height of the area to be filled

color  the index color value (0...256; and some special values, see Remarks)

Return

the color value if successful, NIL otherwise

Example

(start_image "img_A")
(fill_image 0 0 (dimx_tile "img_A") (dimy_tile "img_A") 2)
(end_image)

Remarks

there are some special color values available :
-2  color of drawing area
-15 DCL background color
-16 DCL foreground color
-18 DCL edge color

see (start_image) and (end_image) functions



©  Bricsys NV. All rights reserved.