drawArrow
|
[, floating R, integer G =R, integer B =R, integer Width =1 ] )
|
|
Image
|
|
An integer between 1 and 116 specifying the image frame number. Values in the range of 100-116 correspond to hidden frames.
|
|
X1, Y1, X2, Y2
|
|
Positive integers specifying the coordinates of the start and end point of the arrow in pixels.
|
|
R
|
|
An optional floating variable or constant specifying the color or intensity of the line. Depending on the type of the image, this parameter will be interpreted differently:
|
|
|
|
Default value: established by setDrawColor.
|
|
G
|
|
An optional integer specifying the green component of line color for an image of an RGB type. For any other image type this parameter is disregarded.
|
Default value: same as R
|
|
B
|
|
An optional integer specifying the blue component of the line color for an image of an RGB type. For any other image type this parameter is disregarded.
|
Default value: same as R
|
|
Width
|
|
An optional integer between 0 and 100 specifying the width of the line in pixels.
|
Default value: setPencil.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
|
The following set of statements draws a blue arrow on a sample image:
|
|
setCurDir("samples")
|
loadIm (1,"sample8.iwd")
|
drawArrow(1, 1262, 197, 888, 311, 0, 0, 255, 5)
|