fill_image

AutoCad AutoLISP Functions

 
fill_image
 
 
 

Draws a filled rectangle in the currently active dialog box image tile

(fill_image x1 y1 width height color)

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 functions dimx_tile and dimy_tile.

The fill_image function must be used between start_image and end_image function calls.

Arguments

x1

X coordinate of the upper-left corner of the rectangle located at (x1,y1). Must be a positive value.

y1

Y coordinate of upper-left corner. Must be a positive value.

width

Width of the fill area (in pixels), relative to x1.

height

Width of the fill area (in pixels), relative to y1.

color

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)