Canvas Compat
Compat methods for Canvas.
Types
Link copied to clipboard
interface CanvasOperation
Helper interface to allow delegates to alter the canvas before and after a canvas operation.
Functions
Link copied to clipboard
Convenience for saveLayer but instead of taking a entire Paint object it takes only the
alpha
parameter.open fun saveLayerAlpha(@NonNull canvas: Canvas, left: Float, top: Float, right: Float, bottom: Float, alpha: Int): Int
Convenience for saveLayerAlpha that takes the four float coordinates of the bounds rectangle.