validateAlphaType

Returns a valid ColorAlphaType for colorType. If there is more than one valid canonical ColorAlphaType, set to alphaType, if valid.

Returns null only if alphaType is ColorAlphaType.UNKNOWN, color type is not .UNKNOWN, and ColorType is not always opaque.

Return

ColorAlphaType if can be associated with colorType