Aspose::Cells::Rendering::ImageOrPrintOptions::SetDesiredSize method

ImageOrPrintOptions::SetDesiredSize method

Sets desired width and height of image.

void Aspose::Cells::Rendering::ImageOrPrintOptions::SetDesiredSize(int32_t desiredWidth, int32_t desiredHeight, bool keepAspectRatio)
ParameterTypeDescription
desiredWidthint32_tdesired width in pixels
desiredHeightint32_tdesired height in pixels
keepAspectRatioboolwhether to keep aspect ratio of origin image

Remarks

The width and height of the output image in pixels will be only based on the set desired width and height.

The HorizontalResolution and VerticalResolution will not effect the width and height of the output image in this case.

See Also