magickAddNoiseImage method
Adds random noise to the image.
This method runs inside an isolate different from the main isolate.
noiseType
: the type of noise.attenuate
: attenuate the random distribution.
Implementation
Future<bool> magickAddNoiseImage(
NoiseType noiseType, double attenuate) async =>
await _magickCompute(
_magickAddNoiseImage,
_MagickAddNoiseImageParams(
_wandPtr.address,
noiseType.index,
attenuate,
),
);