| com.pspdfkit.document.processor.NewPage.OnDrawCanvasCallback |
Callback passed to fromCanvas(Size, OnDrawCanvasCallback) to perform the drawing on the document canvas.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
onDrawCanvas(Canvas canvas)
Called by the implementation to hand back the canvas that holds the drawing calls of the document.
| ||||||||||
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:
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)setColorFilter(android.graphics.ColorFilter)setMaskFilter(android.graphics.MaskFilter)PorterDuff.Mode SRC,
PorterDuff.DST_ATOP,
PorterDuff.XOR,
PorterDuff.ADD| canvas | Canvas that holds the drawing calls of the document. |
|---|