Aspose::Words::Document::RenderToSize method

Document::RenderToSize method

Renders a document page into a object to a specified size.

float Aspose::Words::Document::RenderToSize(int32_t pageIndex, const System::SharedPtr<System::Drawing::Graphics> &graphics, float x, float y, float width, float height)
ParameterTypeDescription
pageIndexint32_tThe 0-based page index.
graphicsconst System::SharedPtr<System::Drawing::Graphics>&The object where to render to.
xfloatThe X coordinate (in world units) of the top left corner of the rendered page.
yfloatThe Y coordinate (in world units) of the top left corner of the rendered page.
widthfloatThe maximum width (in world units) that can be occupied by the rendered page.
heightfloatThe maximum height (in world units) that can be occupied by the rendered page.

ReturnValue

The scale that was automatically calculated for the rendered page to fit the specified size.

See Also