magickModulateImage method
MagickModulateImage() lets you control the brightness, saturation, and hue of an image. Hue is the percentage of absolute rotation from the current position. For example 50 results in a counter-clockwise rotation of 90 degrees, 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees. To increase the color brightness by 20 and decrease the color saturation by 10 and leave the hue unchanged, use: 120,90,100.
This method runs inside an isolate different from the main isolate.
brightness
: the percent change in brightness.saturation
: the percent change in saturation.hue
:the percent change in hue.
Implementation
Future<bool> magickModulateImage({
required double brightness,
required double saturation,
required double hue,
}) async =>
await _magickCompute(
_magickModulateImage,
_MagickModulateImageParams(
_wandPtr.address,
brightness,
saturation,
hue,
),
);