Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Windows 8.1, 10, WindowsPhone, Windows UWP

Unable to load an ink annotation on a canvas

More
10 years 7 months ago #9343 by Pja
I am unable to load a particular ink annotation on a canvas for further editing it.
public void StylusPopUpshow(PDFAnnot annot, PDFVPage page, PDFDoc m_doc, PDFView m_view, ScrollViewer m_scroller)
{
if (!StylusCommentPopup.IsOpen)
{
StylusCommentPopup.IsOpen = true;

rect = annot.Rect;
int h = Math.Abs((int)(annot.Rect.bottom - annot.Rect.left));
int w = Math.Abs((int)(annot.Rect.right - annot.Rect.top));

m_bmp = new PDFBmp(w,h);
bmp = new WriteableBitmap(w,h);
bmp = m_bmp.Data;
bmp.Invalidate();
pg = page.GetPage();

mat = page.CreateInvertMatrix(0,0);
pg.RenderToBmp(m_bmp, mat, true, PDF_RENDER_MODE.mode_normal);

Image img = new Image();
img.Source = bmp;

Canvas.SetLeft(img, 10);
Canvas.SetTop(img, 10);

StylusCanvas.Children.Add(img);

StylusCanvas.UpdateLayout();

}
}

This is the code. Using this code the entire page is displayed on the canvas instead of the clicked annotation.
Can you help me with this?
More
10 years 7 months ago #9352 by support
Windows SDK is lacking the PDFAnnot.RenderToBmp() method yet.
We will release an update with a lot of fixes and some missing method from Android and iOS version later next week.
More
10 years 7 months ago #9353 by Pja
Thank you for your reply....
Will the next version of windows have the same updates like Android?
I need to buy the windows latest version for using in my project.
Can you please keep me updated about it?
More
10 years 7 months ago #9354 by Pja
I need to implement a feature in my project where i load the ink annotation on a canvas as a pop up so that i can edit it (also change the stroke color and width)
and after editing the ink annotation add the edited annotation on the same position on pdf.
Is this possible in windows library of your later versions or in paid version?
Please update me about this since i need it urgently in my project?
More
10 years 7 months ago #9371 by support
It won't be possible to alter ink paths.
The feature isn't available at the moment.
Only an annotation render to bitmap so you would be able to put it on your own canvas.
Time to create page: 0.413 seconds
Powered by Kunena Forum