magickSetImageColormapColor method
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,
),
);