Excel.Interfaces.ImageData interface
一个接口,用于描述通过调用 image.toJSON()返回的数据。
属性
| brightness | 指定图像的亮度。 此属性的值必须是介于 0.0 (最暗) 到 1.0 (最亮)。 |
| color |
指定应用于图像的颜色转换的类型。 |
| contrast | 指定图像的对比度。 此属性的值必须是数字从 0.0 (最小的对比度) 到 1.0 (最大对比度)。 |
| crop |
指定从图像底部裁剪的点数。 |
| crop |
指定从图像左侧裁剪的点数。 |
| crop |
指定从图像右侧裁剪的点数。 |
| crop |
指定从图像顶部裁剪的点数。 |
| format | 返回图像的格式。 |
| id | 指定图像对象的形状标识符。 |
属性详细信息
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
注解
cropBottom
cropLeft
cropRight
cropTop
format
返回图像的格式。
format?: Excel.PictureFormat | "UNKNOWN" | "BMP" | "JPEG" | "GIF" | "PNG" | "SVG";
属性值
Excel.PictureFormat | "UNKNOWN" | "BMP" | "JPEG" | "GIF" | "PNG" | "SVG"