PowerPoint.ShapeGetImageOptions interface
Represents the available options when getting an image of a shape. The image is scaled to fit into the desired dimensions. If width and height aren't specified, the true size of the shape is used. If only one of either width or height is specified, the other will be calculated to preserve aspect ratio. The resulting dimensions will automatically be clamped to the maximum supported size if too large.
Remarks
Properties
| format | The desired format of the resulting image. |
| height | The desired height of the resulting image in pixels. This value will automatically be clamped to the maximum supported size if too large. Throws an |
| width | The desired width of the resulting image in pixels. This value will automatically be clamped to the maximum supported size if too large. Throws an |
Property Details
format
The desired format of the resulting image.
format?: PowerPoint.ShapeGetImageFormatType | "Png";
Property Value
Remarks
height
The desired height of the resulting image in pixels. This value will automatically be clamped to the maximum supported size if too large. Throws an InvalidArgument exception when set with a non-positive integer.
height?: number;
Property Value
number
Remarks
width
The desired width of the resulting image in pixels. This value will automatically be clamped to the maximum supported size if too large. Throws an InvalidArgument exception when set with a non-positive integer.
width?: number;
Property Value
number