Author |
Topic |
|
jeffp
USA
42 Posts |
Posted - Oct 15 2024 : 14:04:46
|
Is there anyway I can create a new "square" Annotation with a transparent fill but a dark red border around the box?
FViewer.PdfViewer.Annotations.NewAnnotation(Result, patSquare, TColor2TRGBA(clRed, 255), TColor2TRGBA(clRed, 5));
I can't seem to find a way to add a dark red border around the annotation.
Thanks.
--Jeff
jp |
|
xequte
38608 Posts |
Posted - Oct 16 2024 : 19:27:51
|
Hi
Your code above seems correct for a square of a fully opaque red border and almost transparent fill. Can you clarify what you are seeing?
Nigel Xequte Software www.imageen.com
|
|
|
jeffp
USA
42 Posts |
Posted - Oct 16 2024 : 20:23:08
|
I got it working better so I don't know what I was doing before. However, I will say even with the opacity of 255 the border still looks a bit muted. I was hoping it would be a bright red.
jp |
|
|
xequte
38608 Posts |
Posted - Nov 03 2024 : 23:14:58
|
Hi Jeff
I checked this, it gave me a perfectly red rectangle:
ImageEnView1.PdfViewer.Annotations.NewAnnotation(DRect( 100, 100, 500, 500 ), patSquare, TColor2TRGBA(clRed, 255), TColor2TRGBA(clRed, 255));
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|
|
|