- 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
change the color and size of pencil input
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 8 months ago #10068
by ankur123987
change the color and size of pencil input was created by ankur123987
Hi Radaeepdf team,
I am using pencil input the default color of ink is light grey i want to change the color of ink and size . Currently i am using Global.inkColor and Global.inkWidth variables for update the color and size ...
But this variable does not reflect the value at same time while using the ink at pdf if i choose again color then only it reflect previous value . i hope my question is clear
please reply me how can i change the color and size of ink with same time while using ink
thanks
I am using pencil input the default color of ink is light grey i want to change the color of ink and size . Currently i am using Global.inkColor and Global.inkWidth variables for update the color and size ...
But this variable does not reflect the value at same time while using the ink at pdf if i choose again color then only it reflect previous value . i hope my question is clear
please reply me how can i change the color and size of ink with same time while using ink
thanks
10 years 8 months ago #10075
by radaee
Replied by radaee on topic change the color and size of pencil input
the color and width is keeped in Ink class as protected member.
when u are in ink status, all values are keeped by Ink object.
when u added ink annotation to the page, .u can get Annotation object and invoke Annotation.SetStrokeColor() and Annotation.SetStrokeWidth().
when u are in ink status, all values are keeped by Ink object.
when u added ink annotation to the page, .u can get Annotation object and invoke Annotation.SetStrokeColor() and Annotation.SetStrokeWidth().
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 8 months ago #10086
by ankur123987
Replied by ankur123987 on topic change the color and size of pencil input
thanks for your reply but i am getting following error Cannot make a static reference to the non-static method SetStrokeColor(int) from the type Page.Annotation do you have any source code or demo for implementation of it? it would be great help for me thanks
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 7 months ago #10094
by ankur123987
Replied by ankur123987 on topic change the color and size of pencil input
please provide the solution of this issue ASAP . please help
10 years 7 months ago #10116
by radaee
Replied by radaee on topic change the color and size of pencil input
this need u have source codes for PDFLayoutView.java (u can download java codes after paid professional or premium license).
and create a new Ink object copy coordinates and some attribute from old one.
and then invalidate the view.
and create a new Ink object copy coordinates and some attribute from old one.
and then invalidate the view.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 7 months ago #10155
by ankur123987
Replied by ankur123987 on topic change the color and size of pencil input
do you mean PDFLAyoutVert.java. i could not find the PDFLayoutView class in premium version but this file is located in demo version . is it different from demo version file?. i checked all wrap version but unable to find please help
Time to create page: 0.417 seconds