vector_image


(vector_image x1 y1 x2 y2 color)

This function draws a vector from (x1,y1) to (x2,y2) into the active DCL image tile using color.

Arguments

x1  (integer) x coordinate of the start point
y1  (integer) y coordinate of the start point
x2  (integer) x coordinate of the end point
y2  (integer) y coordinate of the end point
color  (integer) color value to be used for the vector; an ACI index color value (0...256) or
-2  color of the drawing area
-15  dialog background color
-16  dialog foreground (text) color
-18  dialog line color

Return

(integer) returns the color value

Example


Remarks

all coordinates are relative to upper-left corner, which is (0,0);
see (start_image) function, this determines the currently active DCL image tile;
see (dimx_tile) and (dimy_tile) functions for the coordinates of the lower-right corner



©  Bricsys NV. All rights reserved.