setAlpha

open fun setAlpha(inBitmap: Bitmap, outBitmap: Bitmap)

Sets the alpha of the Bitmap we're going to re-use to the alpha of the Bitmap we're going to transform. This keeps hasAlpha} consistent before and after the transformation for transformations that don't add or remove transparent pixels.

Parameters

inBitmap

The android.graphics.Bitmap that will be transformed.

outBitmap

The android.graphics.Bitmap that will be returned from the transformation.