Starting with version 1.7, AspJpeg is capable of adjusting the brightness, contrast and saturation of
an image using the multi-purpose Adjust method. This method expects two parameters: the operation
code and the operation-specific value.
To adjust brightness, 1 is passed as the first parameter
and a brightness value in the range [-1, 1] is passed as the 2nd parameter. A value greater than 0
increases brightness, a value less than 0 decreases it:
jpeg.Adjust 1, 0.05
To adjust contrast, 2 is passed as the first parameter
and a contrast value in the range [0.001, 5] is passed as the 2nd parameter. A value greater than 1
increases constrast, a value less than 1 decreases it:
jpeg.Adjust 2, 1.2
To adjust saturation, 3 is passed as the first parameter
and a saturation value in the range [-1, 1] is passed as the 2nd parameter. A value greater than 0
increases saturation, a value less than 0 decreases it:
jpeg.Adjust 3, -0.2
The Adjust method is only applicable to RGB images.