PdfRendererPreV.Page.Render(Bitmap, Rect, Matrix, RenderParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Renders a page to a bitmap.
[Android.Runtime.Register("render", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Matrix;Landroid/graphics/pdf/RenderParams;)V", "", ApiSince=35)]
public void Render (Android.Graphics.Bitmap destination, Android.Graphics.Rect? destClip, Android.Graphics.Matrix? transform, Android.Graphics.Pdf.RenderParams params);
[<Android.Runtime.Register("render", "(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Matrix;Landroid/graphics/pdf/RenderParams;)V", "", ApiSince=35)>]
member this.Render : Android.Graphics.Bitmap * Android.Graphics.Rect * Android.Graphics.Matrix * Android.Graphics.Pdf.RenderParams -> unit
Parameters
- destination
- Bitmap
Destination bitmap to write to.
- destClip
- Rect
If null, default zoom is applied. In case the value is non-null, the value specifies the top top-left corner of the tile.
- transform
- Matrix
Applied to scale the bitmap up/down from default 1/72 points.
- params
- RenderParams
Render params for the changing display mode and/or annotations.
- Attributes
Remarks
Renders a page to a bitmap. In case of default zoom, the Bitmap
dimensions will be equal to the page dimensions. In this case, Rect
parameter can be null.
In case of zoom, the Rect
parameter needs to be specified which represents the offset from top and left for tile generation purposes. In this case, the Bitmap
dimensions should be equal to the tile dimensions.
<strong>Note:</strong> The method will take care of closing the bitmap. Should be invoked on the android.annotation.WorkerThread
as it is long-running task.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.