magickSetImageAlphaChannel method

Future<bool> magickSetImageAlphaChannel(
  1. AlphaChannelOption alphaType
)

MagickSetImageAlphaChannel() activates, deactivates, resets, or sets the alpha channel.

This method runs inside an isolate different from the main isolate.

  • alphaType: the alpha channel type: ActivateAlphaChannel, DeactivateAlphaChannel, OpaqueAlphaChannel, or SetAlphaChannel.

Implementation

Future<bool> magickSetImageAlphaChannel(AlphaChannelOption alphaType) async =>
    await _magickCompute(
      _magickSetImageAlphaChannel,
      _MagickSetImageAlphaChannelParams(
        _wandPtr.address,
        alphaType,
      ),
    );