Excel.Interfaces.ImageUpdateData interface
用于更新对象上的 Image 数据的接口,用于 在 中使用 image.set({ ... })。
属性
| brightness | 指定图像的亮度。 此属性的值必须是介于 0.0 (最暗) 到 1.0 (最亮)。 |
| color |
指定应用于图像的颜色转换的类型。 |
| contrast | 指定图像的对比度。 此属性的值必须是数字从 0.0 (最小的对比度) 到 1.0 (最大对比度)。 |
| crop |
指定从图像底部裁剪的点数。 |
| crop |
指定从图像左侧裁剪的点数。 |
| crop |
指定从图像右侧裁剪的点数。 |
| crop |
指定从图像顶部裁剪的点数。 |
属性详细信息
brightness
指定图像的亮度。 此属性的值必须是介于 0.0 (最暗) 到 1.0 (最亮)。
brightness?: number;
属性值
number
注解
colorType
指定应用于图像的颜色转换的类型。
colorType?: Excel.PictureColorType | "Mixed" | "Automatic" | "GrayScale" | "BlackAndWhite" | "Watermark";
属性值
Excel.PictureColorType | "Mixed" | "Automatic" | "GrayScale" | "BlackAndWhite" | "Watermark"
注解
contrast
指定图像的对比度。 此属性的值必须是数字从 0.0 (最小的对比度) 到 1.0 (最大对比度)。
contrast?: number;
属性值
number