How to adjust an image

How to adjust an image

         You can adjust an image brightness by using the AdjustBrightness method and set a brightness parameter in a range from -255 to 255 for performing corrections. The same you can do with AdjustContrast method to make contrast corrections with parameter settings to a range from -100 and 100. If the image has a color component domination, you can make gamma corrections by setting the Red, Green and Blue components coefficient using AdjustGamma method: