AdjustBrightness
RasterCachedImage.AdjustBrightness method
调整图像的亮度。
public override void AdjustBrightness(int brightness)
范围 | 类型 | 描述 |
---|---|---|
brightness | Int32 | 亮度值。 |
例子
以下示例执行光栅缓存图像的亮度校正。
[C#]
string dir = "c:\\temp\\";
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.png"))
{
Aspose.Imaging.RasterCachedImage rasterImage = (Aspose.Imaging.RasterCachedImage)image;
// 设置亮度值。可接受的亮度值在 [-255, 255] 范围内。
rasterImage.AdjustBrightness(50);
rasterImage.Save(dir + "sample.AdjustBrightness.png");
}
也可以看看
- class RasterCachedImage
- 命名空间 Aspose.Imaging
- 部件 Aspose.Imaging