Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Resize Annotation bitmap

More
9 years 2 months ago - 9 years 2 months ago #11765 by rpc_1910
Hello
Is it possible to resize a bitmap annotation?
What functions should I use to do this?
Thanks
Last edit: 9 years 2 months ago by rpc_1910.
More
9 years 2 months ago #11778 by emanuele
Replied by emanuele on topic Resize Annotation bitmap
Hi,

you can use setRect method of PDFAnnot class.
e.g.
Code:
//get annotation instance at point m_annot = [page annotAtPoint:m_annot_pos.x: m_annot_pos.y]; //create new rect PDF_RECT rect; rect.left = 100; rect.right = 300; rect.top = 100; rect.bottom = 300; //set rect of the annotation [m_annot setRect:&rect]; // Re-render the current page [m_view vRenderSync:m_cur_page]; [self refresh]; // Save the PDF file [m_doc save];
Time to create page: 0.380 seconds
Powered by Kunena Forum