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
)
Public Function GetBitmapAsync (
page As Page
) As IAsyncOperation(Of WriteableBitmap)
public:
virtual IAsyncOperation<WriteableBitmap^>^ GetBitmapAsync(
[InAttribute] Page^ page
) sealed
function GetBitmapAsync(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