Example-VB | Example-VC++ |
Draws the annotation.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Annotation Tool Button control, Image Edit control
object.Draw Left,Top[,Width,Height]
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 |
None
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:
Invoking the Draw method sets the ImageModifed property of the Image Edit control to True.
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.