Pdfium image was blur

0

My image was blur in the pdfium rendering. When i multiplied the width and height with 4 , the output image was good quality. I don't know the exact way to get a quality image in pdfium rendering. i used the code

 IntPtr createdpages = FPDFBitmap_CreateEx(width  , height , 4, (IntPtr)p, width*4 );
                    uint background = 0xFFFFFFFF;
                    FPDFBitmap_FillRect(createdpages, 0, 0, width, height, background);
                    FPDF_RenderPageBitmap(createdpages, page, 0, 0, width, height, 0, FPDF.ANNOT);
                    FPDFBitmap_Destroy(createdpages); 
uwp
rendering
pdfium
asked on Stack Overflow Jul 9, 2020 by murali

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0