magickTransformImageColorspace method

Future<bool> magickTransformImageColorspace(
  1. ColorspaceType colorspace
)

MagickTransformImageColorspace() transform the image colorspace, setting the images colorspace while transforming the images data to that colorspace.

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

  • colorspace: the image colorspace.

Implementation

Future<bool> magickTransformImageColorspace(
        ColorspaceType colorspace) async =>
    await _magickCompute(
      _magickTransformImageColorspace,
      _MagickTransformImageColorspaceParams(
        _wandPtr.address,
        colorspace,
      ),
    );