Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

PDF text rendered partly bold

More
IP: 192.168.0.70 13 years 7 months ago - 13 years 7 months ago #203 by flubba
when rendering PDFs sometimes part of the text seems to be rendered bold. This occurs more often when the PDF is zoomed/scaled.
In the attached screenshot the text on the right should look like the one on the left.





The PDF parts are rendered into images using the following code:
Code:
int dib = Global.dibGet(0, (int)patchW, (int)patchH); float scaleW = pageW/doc.GetPageWidth(pageNo) ; Matrix mat = new com.radaee.pdf.Matrix(scaleW, -scaleW,-patchX,pageH-patchY ); page.Render( dib, mat ); int lockBitmap = Global.lockBitmap(bitmap); Global.drawToBmp(lockBitmap, dib, 0,0); Global.unlockBitmap(bitmap, lockBitmap); dib = Global.dibFree(dib);
Last edit: 13 years 7 months ago by .
More
IP: 192.168.0.70 13 years 7 months ago #204 by radaee
before page.Render, you should invoke page.RenderPrepare.
for i tested the demo project, and the problem not appears.
More
IP: 192.168.0.70 13 years 7 months ago #207 by flubba
Thanks, that's it.

I added page.RenderPrepare(dib) and the problem does not occur anymore.
Time to create page: 0.395 seconds
Powered by Kunena Forum