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

Drawing rectangle finished

More
IP: 192.168.0.71 8 years 7 months ago #13421 by shinijoker
Hello,
I want to ask how can I detect the end of drawing a rectangle in the editor demo.
More
IP: 192.168.0.71 8 years 7 months ago - 8 years 7 months ago #13423 by Davide
Replied by Davide on topic Drawing rectangle finished
Hi,
I suggest you to check PDFLayoutView class.
Here you will find the PDFSetRect method, when this is called with code = 1 it draws the rect to the pdf using AddAnnotRect method.
These methods are called by the library when you draw the rectangle and re-tap the rect icon.

Hope this will help you, if you need others info ask.
Last edit: 8 years 7 months ago by Davide.
More
IP: 192.168.0.71 8 years 7 months ago #13424 by shinijoker
Thank you for your response Davide. I want to use this method automatically without having the user to re-tap the icon.
More
IP: 192.168.0.71 8 years 7 months ago #13426 by shinijoker
If that's impossible can I remove the previous rect when I draw a second after clicking on the draw rect icon?
More
IP: 192.168.0.71 8 years 7 months ago #13427 by shinijoker
I have solved this by using "case MotionEvent.ACTION_UP:" in the PDFLayoutView class. Thank you and sorry foe the spam
Time to create page: 0.400 seconds
Powered by Kunena Forum