Aspose::Words::Document::RenderToScale method

Document::RenderToScale method

Renders a document page into a Graphics object to a specified scale.

System::Drawing::SizeF Aspose::Words::Document::RenderToScale(int32_t pageIndex, const System::SharedPtr<System::Drawing::Graphics> &graphics, float x, float y, float scale)
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.
scalefloatThe scale for rendering the page (1.0 is 100%).

ReturnValue

The width and height (in world units) of the rendered page.

See Also