DjvuImageAdjustGamma Method (Single, Single, Single)
Gamma-correction of an image.

Namespace: Aspose.Imaging.FileFormats.Djvu
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public override void AdjustGamma(
	float gammaRed,
	float gammaGreen,
	float gammaBlue
)

Parameters

gammaRed
Type: SystemSingle
Gamma for red channel coefficient
gammaGreen
Type: SystemSingle
Gamma for green channel coefficient
gammaBlue
Type: SystemSingle
Gamma for blue channel coefficient
Examples
The following example performs gamma-correction of a DJVU image applying different coefficients for color components.
[C#]

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

using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.djvu"))
{
    Aspose.Imaging.FileFormats.Djvu.DjvuImage djvuImage = (Aspose.Imaging.FileFormats.Djvu.DjvuImage)image;

    // Set individual gamma coefficients for red, green and blue channels.
    djvuImage.AdjustGamma(1.5f, 2.5f, 3.5f);
    djvuImage.Save(dir + "sample.AdjustGamma.png", new Aspose.Imaging.ImageOptions.PngOptions());
}
See Also