BorderWidth of FreeHandHighlighter is really big

Discussions about annotation support.
Post Reply
bhattarai
Posts: 4
Joined: Fri Feb 12, 2016 10:50 am

BorderWidth of FreeHandHighlighter is really big

Post by bhattarai » Mon Feb 15, 2016 6:54 pm

https://www.gdpicture.com/guides/gdpict ... lean).html

Code: Select all

public void AddFreeHandHighlighterAnnotInteractive( 
   Color BorderColor,
   float BorderWidth,
   bool ContinuousMode
)

I wanted to use AddFreeHandHighlighterAnnotInteractive, the minimum value for BorderWidth we can give is 1( in inches). But it is big, If I highlight my pdf files, it will highlight the hole paragraph rather than a line. Cannot we change it datatype from float to double in new version? Is there any work around right now?
Attachments
gdpicture.PNG
gdpicture.PNG (56.61 KiB) Viewed 6232 times

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: BorderWidth of FreeHandHighlighter is really big

Post by Cedric » Tue Feb 16, 2016 10:48 am

Hello

I don't see the problem here, 1 is obviously not the minimum value and you can set a lower value without any particular issue, that's exactly what we are doing in the Annotation demo application, default value being 0.1.
There is really no need to change the parameter type from float to double, float type has more than enough decimal precision for this application.

Regards,

bhattarai
Posts: 4
Joined: Fri Feb 12, 2016 10:50 am

Re: BorderWidth of FreeHandHighlighter is really big

Post by bhattarai » Tue Feb 16, 2016 2:07 pm

Thank you for the answer. Got it right now.

Code: Select all

  GdViewer.AddFreeHandHighlighterAnnotInteractive(System.Windows.Media.Color.FromRgb(255,255,0), 0.2f, true);

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest