OptionalborderOptionalborderValue of the border if BorderType is 'constant'.
OptionalheightHeight of the output image.
OptionalinterpolationMethod to use to interpolate the new pixels.
OptionalpreserveWhether the aspect ratio of the image should be preserved.
OptionalwidthWidth of the output image.
OptionalxFactor by which to scale the width.
OptionalyFactor by which to scale the width.
Specify how the borders should be handled.