Hello,
Is it possible to keep the "BuildAnnotation" status turned on after an annotation has been drawn?
In my application, I have a Highlighter toolstrip button that gives the user the ability to press it and then highlight areas in the document. The problem is, as soon as they have highlighted an area, the "RectangleAnnotation" status is turned off and I have to call the "BuildAnnotation" method again to turn it back on. This is not a big deal, if I could get it to work. Unfortunately, the only place I know to call the "BuildAnnotation" method again is from the "AnnotationChanged" event, which is causing an infinite loop and therefore an error. Is it possible to have an option to keep the buildannotation status turned on?
Also, I think I know the answer to this, but I am going to ask it anyway. Is there anyway to have the highlights brighter? I would like to allow my users to highlight in bright yellow (255,255,0). The problem is, the only way I can find to make the "RectangleAnnotation" transparent is to set the Alpha value in an ARGP color, which causes the colors to get very dull. I am currently using a value of 120, which is about the best mix of transparency and brightness that I can find. Is there any way to get a bright yellow transparent rectangle?
Thanks,
Reagan
More Annotation Questions
Moderator: Alex
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: More Annotation Questions
Hello Reagan,
Have you seen our Annotation demo? Highlight annotation can be created as follows:
This code does not suit your needs?
Best regards, Alexander
Have you seen our Annotation demo? Highlight annotation can be created as follows:
Code: Select all
RectangleAnnotation ann = new RectangleAnnotation();
ann.BackColor = Color.FromArgb(70, 255, 255, 0);
ann.Outline.Color = Color.FromArgb(70, 255, 50, 0);
Best regards, Alexander
-
- Posts: 4
- Joined: Thu Mar 18, 2010 10:54 pm
Re: More Annotation Questions
I also feel that the highlighting feature produces a very dim experience. Kodak and Imageman controls both have the ability to highlight in bright yellow with complete transparency; the ARGB function does not have a way to give me this same result as far as I can tell.
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: More Annotation Questions
Hello,
Best regards, Alexander
We will add ability to use blending in version 4.1 of library - I think this functionality will be available in a month.I also feel that the highlighting feature produces a very dim experience. Kodak and Imageman controls both have the ability to highlight in bright yellow with complete transparency; the ARGB function does not have a way to give me this same result as far as I can tell.
Best regards, Alexander