- Posts: 97
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
how to change the color of rect
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 1 month ago #10129
by ankur123987
how to change the color of rect was created by ankur123987
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
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
10 years 1 month ago #10130
by Davide
Replied by Davide on topic how to change the color of rect
Hi,
to change the color of the border I suggest you to look at :
For more info check this:
www.radaeepdf.com/documentation/javadocs...#SetStrokeColor(int)
To change annotation's background you should use:
For more info check this:
www.radaeepdf.com/documentation/javadocs...ml#SetFillColor(int)
to change the color of the border I suggest you to look at :
Code:
m_annot.SetStrokeColor(int color)
To change annotation's background you should use:
Code:
m_annot.SetFillColor(int color)
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 1 month ago #10142
by ankur123987
Replied by ankur123987 on topic how to change the color of rect
thanks davide one more question how can i get the m_annot object ?
10 years 1 month ago #10144
by radaee
Replied by radaee on topic how to change the color of rect
2 ways :
--call back method PDFReader.OnAnnotClicked() shall pass annotation object to u.
--Page.ObjsStart(), Page.GetAnnotCount() and Page.GetAnnot(index) can be used.
--call back method PDFReader.OnAnnotClicked() shall pass annotation object to u.
--Page.ObjsStart(), Page.GetAnnotCount() and Page.GetAnnot(index) can be used.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 1 month ago #10154
by ankur123987
Replied by ankur123987 on topic how to change the color of rect
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?
how can i call m_annot from activity class?
10 years 1 month ago #10162
by Davide
Replied by Davide on topic how to change the color of rect
Hi,
you can get annotation using:
or
For more info check this:
www.radaeepdf.com/documentation/javadocs...e.html#GetAnnot(int)
or
www.radaeepdf.com/documentation/javadocs...ml#GetAnnotFromPoint (float, float)
you can get annotation using:
Code:
page.GetAnnot(int);
Code:
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)
Time to create page: 0.407 seconds