Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

change the color and size of pencil input 9 years 3 months ago #10068

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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
The topic has been locked.

change the color and size of pencil input 9 years 3 months ago #10075

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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().
The topic has been locked.

change the color and size of pencil input 9 years 3 months ago #10086

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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
The topic has been locked.

change the color and size of pencil input 9 years 3 months ago #10094

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
please provide the solution of this issue ASAP . please help
The topic has been locked.

change the color and size of pencil input 9 years 3 months ago #10116

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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.
The topic has been locked.

change the color and size of pencil input 9 years 3 months ago #10155

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum