Image |
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Value is not greater than 0. |
If both Width and Height are not specified, then image size will be equal to the slide size.
If only one of the Width or Height is specified, then the specified dimension will be respected and other dimension will be calculated so that original aspect ratio is maintained.
If both Width and Height are specified, then both specified dimensions will be respected (which may result in non-uniformly scaled image, if aspect ratio is not equal to the original one.