Click or drag to resize

PDFDrawGetBitmapAsync Method

Gets the bitmap for a given page asynchronously.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public IAsyncOperation<WriteableBitmap> GetBitmapAsync(
	Page page
)

Parameters

page
Type: pdftron.PDFPage
The source PDF page.

Return Value

Type: IAsyncOperationWriteableBitmap
When this methods complete, it returns the bitmap image (WriteableBitmap).
Remarks
This method can only be called from the UI thread.
Examples
PDFDraw pdfDraw = new PDFDraw();
Page page1 = myPDF.GetPage(1);
BitmapSource bmpSrc = await pdfDraw.GetBitmapAsync(page1);
See Also