Annotation HighLight
Annotation HighLight
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
I've notice that this component do not have the propriety Opacity. How can I fix that?
Regards
Rogerio
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Annotation HighLight
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
>> 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
Re: Annotation HighLight
HI, I'm using the AnnotationRectangleHighlighter and this component do not have the Opacity property. could you show me an example?
Regards
Rogerio
Regards
Rogerio
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Annotation HighLight
Hi,
Assuming ann is your annotation
Sami
Assuming ann is your annotation
Code: Select all
ann.FillColor = oGdPictureImaging.ARGB(128, 255, 0, 0)
Sami
Re: Annotation HighLight
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
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
Re: Annotation HighLight
Hello Sami,
I've note that in your example you're using oGdPictureImaging. I use oGdViewer.
Regards
I've note that in your example you're using oGdPictureImaging. I use oGdViewer.
Regards
Re: Annotation HighLight
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
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
Who is online
Users browsing this forum: No registered users and 0 guests