- Posts: 2
- Thank you received: 0
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
IP: 192.168.0.70
13 years 7 months ago - 13 years 7 months ago #203
by flubba
PDF text rendered partly bold was created 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:
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 .
IP: 192.168.0.70
13 years 7 months ago #204
by radaee
Replied by radaee on topic Re: PDF text rendered partly bold
before page.Render, you should invoke page.RenderPrepare.
for i tested the demo project, and the problem not appears.
for i tested the demo project, and the problem not appears.
IP: 192.168.0.70
13 years 7 months ago #207
by flubba
Replied by flubba on topic Re: PDF text rendered partly bold
Thanks, that's it.
I added page.RenderPrepare(dib) and the problem does not occur anymore.
I added page.RenderPrepare(dib) and the problem does not occur anymore.
Time to create page: 0.395 seconds