- Posts: 11
- 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
Drawing rectangle finished
- shinijoker
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
8 years 7 months ago #13421
by shinijoker
Drawing rectangle finished was created by shinijoker
Hello,
I want to ask how can I detect the end of drawing a rectangle in the editor demo.
I want to ask how can I detect the end of drawing a rectangle in the editor demo.
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.
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.
- shinijoker
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
IP: 192.168.0.71
8 years 7 months ago #13424
by shinijoker
Replied by shinijoker on topic Drawing rectangle finished
Thank you for your response Davide. I want to use this method automatically without having the user to re-tap the icon.
- shinijoker
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
IP: 192.168.0.71
8 years 7 months ago #13426
by shinijoker
Replied by shinijoker on topic Drawing rectangle finished
If that's impossible can I remove the previous rect when I draw a second after clicking on the draw rect icon?
- shinijoker
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
IP: 192.168.0.71
8 years 7 months ago #13427
by shinijoker
Replied by shinijoker on topic Drawing rectangle finished
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