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

Render rect drawn by code

More
11 years 3 months ago #9067 by ahmbar
When i try to draw rectangle by code it does not show in the screen until the user touch the PDF then it is render the new rectangle.

How to draw the rectangle without the need for user to touch the screen ?

My code for draw URI rect inside PDFReader class:
Code:
PDFVPage vpage = m_view.vGetPage(pageno); if (vpage != null) { Page page = vpage.GetPage(); if (page != null) { page.AddAnnotURI(rect,tag); } else { Log.d("PDF", "page is null "); } m_view.vRenderSync(vpage); }
More
11 years 3 months ago #9068 by Davide
Replied by Davide on topic Render rect drawn by code
Hi,
try to call:
Code:
invalidate();
More
11 years 3 months ago - 11 years 3 months ago #9125 by ahmbar
Replied by ahmbar on topic Render rect drawn by code
*Fixed it was not rendering due to bug in the time when call the draw method
Last edit: 11 years 3 months ago by ahmbar.
Time to create page: 0.395 seconds
Powered by Kunena Forum