RasterImageAdjustBrightness Method
Adjust of a brightness for image.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.05
Syntax
public virtual void AdjustBrightness(
	int brightness
)

Parameters

brightness
Type: SystemInt32
Brightness value.
Examples
The following example performs brightness correction of an image.
[C#]

string dir = "c:\\temp\\";

using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.png"))
{
    Aspose.Imaging.RasterImage rasterImage = (Aspose.Imaging.RasterImage)image;

    // Set the brightness value. The accepted values of brightness are in the range [-255, 255].
    rasterImage.AdjustBrightness(50);
    rasterImage.Save(dir + "sample.AdjustBrightness.png");
}
See Also