Aspose::Words::Rendering::ShapeRenderer class

ShapeRenderer class

Provides methods to render an individual Shape or GroupShape to a raster or vector image or to a Graphics object. To learn more, visit the Working with Shapes documentation article.

class ShapeRenderer : public NodeRendererBase

Methods

MethodDescription
ShapeRenderer(const System::SharedPtr<Aspose::Words::Drawing::ShapeBase> &)Initializes a new instance of this class.
GetBoundsInPixels(float, float)Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.
GetBoundsInPixels(float, float, float)Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.
GetOpaqueBoundsInPixels(float, float)Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.
GetOpaqueBoundsInPixels(float, float, float)Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.
GetSizeInPixels(float, float)Calculates the size of the shape in pixels for a specified zoom factor and resolution.
GetSizeInPixels(float, float, float)Calculates the size of the shape in pixels for a specified zoom factor and resolution.
RenderToScale(const System::SharedPtr<System::Drawing::Graphics> &, float, float, float)Renders the shape into a Graphics object to a specified scale.
RenderToSize(const System::SharedPtr<System::Drawing::Graphics> &, float, float, float, float)Renders the shape into a Graphics object to a specified size.
Save(const System::SharedPtr<System::IO::Stream> &, System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>)Renders the shape into an image and saves into a stream.
Save(const System::SharedPtr<System::IO::Stream> &, System::SharedPtr<Aspose::Words::Saving::SvgSaveOptions>)Renders the shape into an SVG image and saves into a stream.
Save(const System::String &, System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>)Renders the shape into an image and saves into a file.
Save(const System::String &, System::SharedPtr<Aspose::Words::Saving::SvgSaveOptions>)Renders the shape into an SVG image and saves into a file.
Save(std::basic_ostream<CharType, Traits> &, System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>)Renders the shape into an image and saves into a stream.
Save(std::basic_ostream<CharType, Traits> &, System::SharedPtr<Aspose::Words::Saving::SvgSaveOptions>)Renders the shape into an SVG image and saves into a stream.
get_BoundsInPoints() constGets the actual bounds of the shape in points.
get_OpaqueBoundsInPoints()Gets the opaque bounds of the shape in points.
get_SizeInPoints()Gets the actual size of the shape in points.

See Also