brightness method

void brightness(
  1. int brightness
)

The brightness parameter allows you to increase or decrease the intensity with which an image reflects or radiates perceived light. To specify brightness for an image, use a whole number (integer) between -100 and 100. You can also define brightness using any decimal number between -100.00 and 100.00 To increase the value of the brightness 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/#brightness

Example:

final stack = contentstack.Stack(apiKey, deliveryToken, environment);
final imageTransformation = stack.imageTransform(imageUrl);
final response =  imageTransformation.brightness(20);

Implementation

void brightness(int brightness) {
  query.append('brightness', brightness.toString());
}