HOWTO: Annotate an Image with Text Using the Wang (Kodak) ImageEdit ControlID: Q230489
|
When displaying an image in the Wang (Kodak) ImageEdit control, you might want to add text to the image. This article illustrates how this can be accomplished.
The Wang (Kodak) controls, including ImageEdit, do not ship with Visual Basic, but are included with some versions of Windows. The later versions of the Wang controls are renamed as the Kodak controls. See the REFERENCES section below for more information.
The following code example demonstrates how to accomplish this using the Annotation features of the control. Please note that you will need to change the .Image property to a file that resides on your computer.
With ImgEdit1
' select a path to an image on your system
.Image = "E:\tiffWANG\Simplicity1024.tif"
.Display
.AnnotationType = wiTextStamp
.AnnotationFontColor = vbGreen
.AnnotationStampText = "KILROY WAS HERE!"
.Draw 10, 10
.AnnotationType = wiNone
End With
For additional information about the Wang (Kodak) ImageEdit control, please see the following article in the Microsoft Knowledge Base:
Q197129 INFO: Wang Image Control Limited to 18k Pixels in Ea. Dimension
Additional query words:
Keywords : kb3rdparty kbCtrl kbVBp kbVBp500 kbVBp600 kbGrpVB
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 26, 1999