Page 1 of 1

TextAnnotation tool

Posted: Thu Feb 11, 2010 9:02 am
by rgoodson
Hello,

Sorry for all of the questions. I just want to make sure this is going to work for me.

I am attempting to use the TextAnnotation to add a note tool to the images in my application. For some reason, the font appears very small within the annotation. In fact, the only way that the text is readable at all is by setting the font at the very maximum amount of 72, which is still not very large. What can I do to get the font larger within the TextAnnotation tool?

Thanks,
Reagan

Re: TextAnnotation tool

Posted: Thu Feb 11, 2010 5:31 pm
by Alex
Hello Reagan,

You can specify the font of the TextAnnotation with the Font property.

Here is an example that demonstrates how to increase font size of existing annotation:

Code: Select all

Dim currentFont As Font = textAnnotation.Font
Dim newFontSize As Float = currentFont.Size + 5
If newFontSize > 200 Then
  newFontSize = 200
End If
textAnnotation.Font = New Font(currentFont.FontFamily, newFontSize)
Best regards, Alexander