saveLayerAlpha

open fun saveLayerAlpha(@NonNull canvas: Canvas, @Nullable bounds: RectF, alpha: Int): Int

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.