compositeARGBWithAlpha

open fun compositeARGBWithAlpha(@ColorInt originalARGB: Int, @IntRange(from = 0, to = 255) alpha: Int): Int

Calculates a new color by multiplying an additional alpha int value to the alpha channel of a color in integer type.

Return

The blended color.

Parameters

originalARGB

The original color.

alpha

The additional alpha [0-255].