Annotation HighLight

Discussions about document viewing.
Post Reply
rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Annotation HighLight

Post by rpicilli » Tue Jul 30, 2013 12:23 am

I'm using the highlight annotation over a image. When print that image the annotation becames a solid color component. This way we're not able to read what is under it.

I've notice that this component do not have the propriety Opacity. How can I fix that?

Regards

Rogerio

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Annotation HighLight

Post by SamiKharma » Tue Jul 30, 2013 1:10 pm

Hi,

>> I'm using the highlight annotation over a image
Do you mean: AnnotationRectangleHighlighter
if so, you need to use the FillColor property and supply a color with opacity using GdPictureImaging.ARGB()

Best,
Sami

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Annotation HighLight

Post by rpicilli » Tue Jul 30, 2013 8:39 pm

HI, I'm using the AnnotationRectangleHighlighter and this component do not have the Opacity property. could you show me an example?

Regards

Rogerio

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Annotation HighLight

Post by SamiKharma » Wed Jul 31, 2013 10:46 am

Hi,

Assuming ann is your annotation

Code: Select all

 ann.FillColor = oGdPictureImaging.ARGB(128, 255, 0, 0)

Sami

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Annotation HighLight

Post by rpicilli » Wed Jul 31, 2013 3:29 pm

Hi Sami,

I try this because when I create a "ann" using the following code:

Dim ann As GdPicture9.Annotation = DocsView.GetAnnotationFromIdx(i)

ann.Fillcolor = xxxxx 'Its is not acessible because is Friend


The code substitutive (Don't work either) Whit the code below, the color is changed in document (GdViewer) but not at Printer. I've do this before send to print. (Before GdViewer.PrintDialog)

Sub subChangerOpacityMaxiNote(DocsView As GdPicture9.GdViewer)
Dim iQtdeAnn As Integer = DocsView.GetAnnotationManager.GetAnnotationCount()
For i As Integer = 0 To iQtdeAnn - 1
If DocsView.GetAnnotationFromIdx(i).GetType.Name = "AnnotationRectangleHighlighter" Then
' Quero mudar para um bloco não transparente
' DocsView.GetAnnotationManager.SetAnnotationPropertyValue(i, "Opacity", 0.3) 'Don't work

Dim sCor As System.Drawing.Color = Color.FromArgb(128, 255, 0, 0)
DocsView.GetAnnotationManager.SetAnnotationPropertyValue(i, "FillColor", sCor)
End If
Next
End Sub

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Annotation HighLight

Post by rpicilli » Wed Jul 31, 2013 3:38 pm

Hello Sami,

I've note that in your example you're using oGdPictureImaging. I use oGdViewer.

Regards

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Annotation HighLight

Post by rpicilli » Fri Aug 02, 2013 1:07 pm

Hi Sami and Loïc,

I really need a solution for this. If is not possible to print a document with the AnnotationRectangleHighlighter and "see" what is under, please I need to know that to try find another solution for this issue. Otherwise if exist a solution, please let me know as soon as possible.

Like usual I relly on your knowledge of this component.

Regards

Rogerio

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest