how to change the color of rect - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: how to change the color of rect

how to change the color of rect 2 years 9 months ago #10129

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi radaeepdf team ,

I want to change the color of rect blue to white but unable to detect the lines of code where can i change it . is there any method to change the color via from activity class i tried with in library but color is not reflected i wanted white color from border of rect also

please reply
thanks

Please Log in or Create an account to join the conversation.

how to change the color of rect 2 years 9 months ago #10130

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
to change the color of the border I suggest you to look at :
m_annot.SetStrokeColor(int color)
For more info check this: www.radaeepdf.com/documentation/javadocs...#SetStrokeColor(int)

To change annotation's background you should use:
m_annot.SetFillColor(int color)
For more info check this: www.radaeepdf.com/documentation/javadocs...ml#SetFillColor(int)

Please Log in or Create an account to join the conversation.

how to change the color of rect 2 years 9 months ago #10142

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
thanks davide one more question how can i get the m_annot object ?

Please Log in or Create an account to join the conversation.

how to change the color of rect 2 years 9 months ago #10144

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
2 ways :
--call back method PDFReader.OnAnnotClicked() shall pass annotation object to u.
--Page.ObjsStart(), Page.GetAnnotCount() and Page.GetAnnot(index) can be used.

Please Log in or Create an account to join the conversation.

how to change the color of rect 2 years 9 months ago #10154

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
but these method does not provide the m_annot object . i tried the Page.objstart , page.getAnnontcount() ( its provide the total number of count, ) what would pass in index.
how can i call m_annot from activity class?

Please Log in or Create an account to join the conversation.

how to change the color of rect 2 years 9 months ago #10162

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
you can get annotation using:
page.GetAnnot(int);
or
page.GetAnnotFromPoint(float, float)

For more info check this:
www.radaeepdf.com/documentation/javadocs...e.html#GetAnnot(int)
or
www.radaeepdf.com/documentation/javadocs...ml#GetAnnotFromPoint (float, float)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum