- Posts: 16
- 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
Method AddAnnotPolyline always fails
11 years 2 months ago #9194
by mzuber23
Method AddAnnotPolyline always fails was created by mzuber23
Using even the most simple example, if I create an empty page, and then try to add a polyline annotation to it, the method returns false. For example, if I do the following, AddAnnotPolyline returns false:
AddAnnotInk does not exhibit this problem. I am using the latest beta version, which is 3.5 beta 8. Is this a known issue? As a side note, is it possible to add a quadTo function to the Path class? It's really inconvenient to have to use a cubic bezier for the calculations I'm doing.
Thanks,
Mike
Code:
Path path = new Path();
path.MoveTo(10, 10);
path.LineTo(20, 12);
path.CurveTo(30, 20, 20, 30, -10, 50);
path.ClosePath();
if (!page.AddAnnotPolyline(path, 0, 0, 0xFF000000, 0, 4)) {
// Handle error.
}
AddAnnotInk does not exhibit this problem. I am using the latest beta version, which is 3.5 beta 8. Is this a known issue? As a side note, is it possible to add a quadTo function to the Path class? It's really inconvenient to have to use a cubic bezier for the calculations I'm doing.
Thanks,
Mike
11 years 2 months ago #9207
by Davide
Replied by Davide on topic Method AddAnnotPolyline always fails
Hi,
we will check it and get back to you as soon as possible..
we will check it and get back to you as soon as possible..
11 years 2 months ago #9228
by radaee
Replied by radaee on topic Method AddAnnotPolyline always fails
it always failed, to add closed path to PolyLine.
for closed path, using Polygon instead.
for closed path, using Polygon instead.
11 years 2 months ago - 11 years 2 months ago #9230
by mzuber23
Replied by mzuber23 on topic Method AddAnnotPolyline always fails
I was using a much more complex example in my code, and I think my PDF coordinates were incorrect. Regardless of what happened, I no longer seem to have the error with adding the polyline annotation, so I apologize for the confusion.
Thanks,
Mike
Thanks,
Mike
Last edit: 11 years 2 months ago by mzuber23.
Time to create page: 0.401 seconds