thank you, I connect libary to my project.
but I have a problem.
I generate pdf page to a bitmap but it inverted (Y), and watermark normally seen
see on the screen
thank you, I connect libary to my project. but I have a problem. I generate pdf page to a bitmap but it inverted (Y), and watermark normally seen see on the screen
my code:
RDPDFLib.pdf.PDFMatrix pdfmatrix = new RDPDFLib.pdf.PDFMatrix(1,1,0,0);
RDPDFLib.pdf.PDFBmp bmp = new PDFBmp(width,height);
_pdfPage.RenderToBmp(bmp, pdfmatrix, false, PDF_RENDER_MODE.mode_best);
WriteableBitmap wb = bmp.Data;
Guid BitmapEncoderGuid = BitmapEncoder.JpegEncoderId;
InMemoryRandomAccessStream randomStream = new InMemoryRandomAccessStream();
BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoderGuid, randomStream);
encoder.SetPixelData(Windows.Graphics.Imaging.BitmapPixelFormat.Bgra8,
Windows.Graphics.Imaging.BitmapAlphaMode.Straight,
(uint)width,
(uint)height,
(int)1,
(int)1,
wb.ToByteArray());
await encoder.FlushAsync();