Compartilhar via


PdfDocument.Page.Canvas Property

Definition

Gets the Canvas of the page.

public Android.Graphics.Canvas? Canvas { [Android.Runtime.Register("getCanvas", "()Landroid/graphics/Canvas;", "")] get; }
[<get: Android.Runtime.Register("getCanvas", "()Landroid/graphics/Canvas;", "")>]
member this.Canvas : Android.Graphics.Canvas

Property Value

The canvas if the page is not finished, null otherwise.

Attributes

Remarks

Gets the Canvas of the page.

<strong>Note: </strong> There are some draw operations that are not yet supported by the canvas returned by this method. More specifically: <ul> <li>Inverse path clipping performed via Canvas#clipPath(android.graphics.Path, android.graphics.Region.Op) Canvas.clipPath(android.graphics.Path, android.graphics.Region.Op) for android.graphics.Region.Op#REVERSE_DIFFERENCE Region.Op#REVERSE_DIFFERENCE operations.</li> <li>Canvas#drawVertices(android.graphics.Canvas.VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, android.graphics.Paint) Canvas.drawVertices( android.graphics.Canvas.VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, android.graphics.Paint)</li> <li>Color filters set via Paint#setColorFilter( android.graphics.ColorFilter)</li> <li>Mask filters set via Paint#setMaskFilter( android.graphics.MaskFilter)</li> <li>Some XFER modes such as android.graphics.PorterDuff.Mode#SRC_ATOP PorterDuff.Mode SRC, android.graphics.PorterDuff.Mode#DST_ATOP PorterDuff.DST_ATOP, android.graphics.PorterDuff.Mode#XOR PorterDuff.XOR, android.graphics.PorterDuff.Mode#ADD PorterDuff.ADD</li> </ul>

Java documentation for android.graphics.pdf.PdfDocument.Page.getCanvas().

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.

Applies to