LEADTOOLS Support
Document
Document SDK Questions
Simple Annotation in WPF application without using automation
#1
Posted
:
Wednesday, March 28, 2018 11:35:45 AM(UTC)
Groups: Registered
Posts: 6
I am finding the documentation confusing.
I have an existing WPF application which displays and processes images in a RasterImageViewer control.
I simply want to add a rectangular annotation at a predetermined position, but cannot for the life of me work out how to do this
#2
Posted
:
Friday, March 30, 2018 11:55:04 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Attached is a small sample WPF project using LEADTOOLS 19 Annotations. The demo illustrates how you can use the LEADTOOLS RasterImageViewer with automated annotations; however, the user does not have any ability to draw annotations. The demo adds an annotation to the container automatically at a pre-defined position after an image is loaded. The code for creating the
AnnTextObject was taken directly from the documentation.
I have left in the code where I removed the interactive mode for annotations to be drawn as well as creating the toolbar to illustrate how those could be added. However, those do not have to be enabled in order to use automated annotations. The automation handles user mouse events and painting of annotations automatically so all developers using the annotation features don't have to implement the same thing. That doesn't have to be used though to display annotations.
If you cannot have the automation in your application, can you explain in greater detail what the issue is and why using automation is a problem? From my experience, almost all applications can be implemented using the automated annotations. It's only a very few that actually need to override the mouse events and painting where using automated annotations can't be used.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
Simple Annotation in WPF application without using automation
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.