opacityToAlpha property

int opacityToAlpha

Interprets this double as an opacity value (0 – 1) and converts it to an alpha value (0 – 255).

Implementation

int get opacityToAlpha => this * _channelMax ~/ 1;