AdjustContrast
DjvuImage.AdjustContrast method
Image
对比
public override void AdjustContrast(float contrast)
范围 | 类型 | 描述 |
---|---|---|
contrast | Single | 对比度值(范围 [-100; 100]) |
例子
以下示例执行 DJVU 图像的对比度校正。
[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;
// 设置对比度值。可接受的对比度值在 [-100f, 100f] 范围内。
djvuImage.AdjustContrast(50f);
djvuImage.Save(dir + "sample.AdjustContrast.png", new Aspose.Imaging.ImageOptions.PngOptions());
}
也可以看看
- class DjvuImage
- 命名空间 Aspose.Imaging.FileFormats.Djvu
- 部件 Aspose.Imaging