contrast method
- int contrast
The contrast parameter allows you to increase or decrease the difference between the darkest and lightest tones in a given image. To specify contrast for an image, use a whole number (integer) between -100 and 100. You can also define contrast using any decimal number between -100.00 and 100.00.
To increase the value of the contrast parameter of an image, pass a positive value or negative value For more details, Read documentation: https://www.contentstack.com/docs/developers/apis/image-delivery-api/#contrast
Example
final stack = contentstack.Stack(apiKey, deliveryToken, environment);
final imageTransformation = stack.imageTransform(imageUrl);
final response = await imageTransformation.contrast(20);
Implementation
void contrast(int contrast) {
query.append('contrast', contrast.toString());
}