Excel.Interfaces.ImageData interface
An interface describing the data returned by calling image.toJSON().
Properties
| brightness | Specifies the brightness of the image. The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest). |
| color |
Specifies the type of color transformation applied to the image. |
| contrast | Specifies the contrast of the image. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast). |
| crop |
Specifies the number of points that are cropped off the bottom of the image. |
| crop |
Specifies the number of points that are cropped off the left side of the image. |
| crop |
Specifies the number of points that are cropped off the right side of the image. |
| crop |
Specifies the number of points that are cropped off the top of the image. |
| format | Returns the format of the image. |
| id | Specifies the shape identifier for the image object. |
Property Details
brightness
Specifies the brightness of the image. The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest).
brightness?: number;
Property Value
number
Remarks
colorType
Specifies the type of color transformation applied to the image.
colorType?: Excel.PictureColorType | "Mixed" | "Automatic" | "GrayScale" | "BlackAndWhite" | "Watermark";
Property Value
Excel.PictureColorType | "Mixed" | "Automatic" | "GrayScale" | "BlackAndWhite" | "Watermark"
Remarks
contrast
Specifies the contrast of the image. The value for this property must be a number from 0.0 (the least contrast) to 1.0 (the greatest contrast).
contrast?: number;
Property Value
number
Remarks
cropBottom
Specifies the number of points that are cropped off the bottom of the image.
cropBottom?: number;
Property Value
number
Remarks
cropLeft
Specifies the number of points that are cropped off the left side of the image.
cropLeft?: number;
Property Value
number
Remarks
cropRight
Specifies the number of points that are cropped off the right side of the image.
cropRight?: number;
Property Value
number
Remarks
cropTop
Specifies the number of points that are cropped off the top of the image.
cropTop?: number;
Property Value
number
Remarks
format
Returns the format of the image.
format?: Excel.PictureFormat | "UNKNOWN" | "BMP" | "JPEG" | "GIF" | "PNG" | "SVG";
Property Value
Excel.PictureFormat | "UNKNOWN" | "BMP" | "JPEG" | "GIF" | "PNG" | "SVG"
Remarks
id
Specifies the shape identifier for the image object.
id?: string;
Property Value
string