PdfDocument.BitmapSource
public interface PdfDocument.BitmapSource extends Closeable
A source for retrieving bitmap representations of PDF pages.
Summary
Public methods |
|
|---|---|
abstract @NonNull Bitmap |
Asynchronously retrieves a bitmap representation of the page, optionally constrained to a specific tile region. |
abstract int |
Inherited methods |
||
|---|---|---|
|
Public methods
getBitmap
abstract @NonNull Bitmap getBitmap(@NonNull Size scaledPageSizePx, Rect tileRegion)
Asynchronously retrieves a bitmap representation of the page, optionally constrained to a specific tile region. renderParams is used to determine what contents are rendered on the bitmap.
| Parameters | |
|---|---|
@NonNull Size scaledPageSizePx |
The scaled page size in pixels, representing the page size in case of no zoom, and scaled page size in case of zooming. |
Rect tileRegion |
(Optional) The region of the page to include in the bitmap, in pixels within the |
| See also | |
|---|---|
renderParams |