magickSetImageColormapColor method

Future<bool> magickSetImageColormapColor({
  1. required int index,
  2. required PixelWand color,
})

MagickSetImageColormapColor() sets the color of the specified colormap index.

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

  • index: the offset into the image colormap.
  • color: Return the colormap color in this wand.

Implementation

Future<bool> magickSetImageColormapColor({
  required int index,
  required PixelWand color,
}) async =>
    await _magickCompute(
      _magickSetImageColormapColor,
      _MagickSetImageColormapColorParams(
        _wandPtr.address,
        index,
        color._wandPtr.address,
      ),
    );