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

Ink Annotation

More
IP: 192.168.0.70 13 years 1 month ago #1334 by msj
Ink Annotation was created by msj
Can I get points of Ink Annotation?
More
IP: 192.168.0.70 13 years 1 month ago - 13 years 1 month ago #1335 by radaee
Replied by radaee on topic Ink Annotation
yes, you can invoke:
Ink.GetNodeCount();
Ink.GetNode( int index, float[] pt );
draw on canvas like:
Code:
public void OnDraw(Canvas canvas) { int index = 0; int cnt = getNodeCount(hand); float pt1[] = new float[2]; float pt2[] = new float[2]; Paint paint = new Paint(); Path path = new Path(); paint.setStrokeCap(Cap.ROUND); paint.setStrokeJoin(Join.ROUND); paint.setStrokeWidth(width); paint.setColor(color); paint.setStyle(Style.STROKE); paint.setAntiAlias(true); path.reset(); while( index < cnt ) { int op = getNode( hand, index, pt1 ); switch( op ) { case 1: path.lineTo(pt1[0], pt1[1]); index++; break; case 2: getNode( hand, index + 1, pt2 ); path.quadTo(pt1[0], pt1[1], pt2[0], pt2[1]); index += 2; break; default: path.moveTo(pt1[0], pt1[1]); index++; break; } } canvas.drawPath(path, paint); }
Last edit: 13 years 1 month ago by .
More
IP: 192.168.0.70 13 years 1 month ago #1346 by msj
Replied by msj on topic Ink Annotation
Thanks for your answer.

Then I want to get saved Ink Annotations in document. But I could not find the method.

Help me, please!
More
IP: 192.168.0.70 13 years 1 month ago #1349 by radaee
Replied by radaee on topic Ink Annotation
oh, you can't get Ink object from saved PDF.
you can just get Annotation and check annotation type by:
- Page.GetAnnot
- Page.GetAnnotType()
More
IP: 192.168.0.70 13 years 1 month ago #1352 by msj
Replied by msj on topic Ink Annotation
Would you make it possible to get ink object from saved document?
More
IP: 192.168.0.70 13 years 1 month ago - 13 years 1 month ago #1354 by radaee
Replied by radaee on topic Ink Annotation
NO, i think not.
i think you may save some data out of PDF, which using to contruct Ink object.
Last edit: 13 years 1 month ago by .
Time to create page: 0.382 seconds
Powered by Kunena Forum