Page 1 of 1

BorderWidth of FreeHandHighlighter is really big

Posted: Mon Feb 15, 2016 6:54 pm
by bhattarai
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?

Re: BorderWidth of FreeHandHighlighter is really big

Posted: Tue Feb 16, 2016 10:48 am
by Cedric
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,

Re: BorderWidth of FreeHandHighlighter is really big

Posted: Tue Feb 16, 2016 2:07 pm
by bhattarai
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);