AnnotationFontColor Example VB

This example places a customized rubber stamp at a predetermined location on the image. The AnnotationFont and AnnotationFontColor properties are set to determine the stamp's font and font color.

Private Sub cmdStamp_Click()

    ImgEdit1.AnnotationFont = "Courier"
    ImgEdit1.AnnotationFontColor = vbRed
    'This stamp uses embedded text macros for date and time
    ImgEdit1.AnnotationStampText = "Application received on %B %d, %Y at %H"
    ImgEdit1.AnnotationType = wiTextStamp  '8
    ImgEdit1.Draw 10, 10
End Sub