Draw Method

Draws the annotation.

Applies To

Image Annotation Tool Button control, Image Edit control

Syntax

object.Draw Left,Top[,Width,Height]

Arguments

Parameter

Data Type

Setting

Left

Long

The starting horizontal coordinate of the annotation in image pixels

Top

Long

The starting vertical coordinate of the annotation in image pixels

Width

Long

The width of the annotation in image pixels

Height

Long

The height of the annotation in image pixels


Return Value

None

Remarks

The Draw method draws the annotation specified by the AnnotationType property, standard Annotation Tool Palette, or SelectTool method on the displayed image. The method draws the annotation in accordance with the coordinates specified in the left, top, width, and height parameters.

The width and height parameters must be specified when using the following annotation types:

Select Annotations (optional; see the following Note)

Freehand Line

Filled Rectangle

Hollow Rectangle

Straight Line

Attach-a-Note

Note

Width and height parameter entry is optional when using the Select Annotations annotation type. If only the left and top parameters are specified, selection can be made by point. If all of the parameters are specified, selection can be made using the Select Annotations rectangle.

See Also

Annotation topics in Imaging Concepts

AnnotationType property

Image topics in Imaging Concepts

MarkEnd event

SelectTool method (Image Edit control)