Draws a filled rectangle in the currently active dialog box image tile
(fill_image x1 y1 width height color)
dimx_tile and dimy_tile.
The first (upper-left) corner of the rectangle is located at (x1,y1) and the second (lower-right) corner is located the relative distance (width,height) from the first corner. The origin (0,0) is the upper-left corner of the image. You can obtain the coordinates of the lower-right corner by calling the dimension functionsfill_image function must be used between start_image and end_image function calls.
TheArguments
X coordinate of the upper-left corner of the rectangle located at (x1,y1). Must be a positive value.
Y coordinate of upper-left corner. Must be a positive value.
Width of the fill area (in pixels), relative to x1.
Width of the fill area (in pixels), relative to y1.
An AutoCAD color number, or one of the logical color numbers shown in the following table:
Symbolic names for color attribute |
||
---|---|---|
Color number |
ADI mnemonic |
Description |
-2 |
BGLCOLOR |
Current background of the AutoCAD drawing area |
-15 |
DBGLCOLOR |
Current dialog box background color |
-16 |
DFGLCOLOR |
Current dialog box foreground color (text) |
-18 |
LINELCOLOR |
Current dialog box line color |
Return Values
An integer representing the fill color.
Examples
(setq color -2) ;; color of AutoCAD drawing area
(fill_image
0
0
(dimx_tile "slide_tile")
(dimy_tile "slide_tile")
color
)
(end_image)