Package com.pspdfkit.document.processor
Interface NewPage.OnDrawCanvasCallback
-
- All Implemented Interfaces:
public interface NewPage.OnDrawCanvasCallback
Callback passed to fromCanvas to perform the drawing on the document canvas.
-
-
Method Summary
Modifier and Type Method Description abstract void
onDrawCanvas(@NonNull() Canvas canvas)
Called by the implementation to hand back the canvas that holds the drawing calls of the document. -
-
Method Detail
-
onDrawCanvas
abstract void onDrawCanvas(@NonNull() Canvas canvas)
Called by the implementation to hand back the canvas that holds the drawing calls of the document.
Note: There are some draw operations that are not yet supported by the canvas returned by this method. More specifically:
- Inverse path clipping performed via Canvas.clipPath(android.graphics.Path, android.graphics.Region.Op) for
Region.Op#REVERSE_DIFFERENCE
operations. - Canvas.drawVertices( android.graphics.Canvas.VertexMode, int, float[], int, float[], int, int[], int, short[], int, int, android.graphics.Paint)
- Color filters set via setColorFilter
- Mask filters set via setMaskFilter
- Some XFER modes such as PorterDuff.Mode SRC, PorterDuff.DST_ATOP, PorterDuff.XOR, PorterDuff.ADD
- Parameters:
canvas
- Canvas that holds the drawing calls of the document.
- Inverse path clipping performed via Canvas.clipPath(android.graphics.Path, android.graphics.Region.Op) for
-
-
-
-