ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 NewAnnotation with Red Border?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeffp

USA
42 Posts

Posted - Oct 15 2024 :  14:04:46  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

jeffp

USA
42 Posts

Posted - Oct 16 2024 :  20:23:08  Show Profile  Reply
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
Go to Top of Page

xequte

38608 Posts

Posted - Nov 03 2024 :  23:14:58  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: