Aspose::Words::Rendering::NodeRendererBase::RenderToSize method

NodeRendererBase::RenderToSize method

Renders the shape into a Graphics object to a specified size.

float Aspose::Words::Rendering::NodeRendererBase::RenderToSize(const System::SharedPtr<System::Drawing::Graphics> &graphics, float x, float y, float width, float height)
ParameterTypeDescription
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 shape.
yfloatThe Y coordinate (in world units) of the top left corner of the rendered shape.
widthfloatThe maximum width (in world units) that can be occupied by the rendered shape.
heightfloatThe maximum height (in world units) that can be occupied by the rendered shape.

ReturnValue

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

See Also