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)
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;
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;
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?
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?
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?