drawText
|
[, floating R, integer G =R, integer B =R ] )
|
|
Image
|
|
An integer between 1 and 116 specifying the image frame number. Values in the range of 100-116 correspond to hidden frames.
|
|
Text
|
|
A string containing the text to be drawn.
|
|
X, Y
|
|
Positive integers specifying the coordinates of the top left corner of the text in the image.
|
|
R
|
|
An optional floating variable or constant specifying the color or intensity of the text. 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 the text 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 text color for an image of an RGB type. For any other image type this parameter is disregarded.
|
Default value: same as R
|
|
ERR_OK
|
The flag set if successful.
|
ERR_FAILED
|
The flag set if failed.
|
|
The following set of statements assigns a font and draw a text on a sample image:
|
|
setCurDir("samples")
|
loadIm(1,"sample15.iwd")
|
setDrawColor(1, 255, 128, 0)
|
setFont("Arial", -32, 0, FALSE, TRUE, FALSE)
|
drawText(1, "Image analysis at warp speed", 60, 97)
|
|