Aspose::Words::Rendering::ShapeRenderer Class Reference

Detailed Description

Provides methods to render an individual Shape or GroupShape to a raster or vector image or to a Graphics object.

#include <Aspose.Words.Cpp/Rendering/ShapeRenderer.h>

+ Inheritance diagram for Aspose::Words::Rendering::ShapeRenderer:

Public Member Functions

 ShapeRenderer (SharedPtr< ShapeBase > shape)
 Initializes a new instance of this class. More...
 
virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 
- Public Member Functions inherited from NodeRendererBase
 NodeRendererBase ()
 
RectangleF get_BoundsInPoints ()
 Gets the actual bounds of the shape in points. More...
 
RectangleF get_OpaqueBoundsInPoints ()
 Gets the opaque bounds of the shape in points. More...
 
SizeF get_SizeInPoints ()
 Gets the actual size of the shape in points. More...
 
Rectangle GetBoundsInPixels (float scale, float dpi)
 Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetBoundsInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetOpaqueBoundsInPixels (float scale, float dpi)
 Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetOpaqueBoundsInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Size GetSizeInPixels (float scale, float dpi)
 Calculates the size of the shape in pixels for a specified zoom factor and resolution. More...
 
Size GetSizeInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the size of the shape in pixels for a specified zoom factor and resolution. More...
 
SizeF RenderToScale (SharedPtr< Graphics > graphics, float x, float y, float scale)
 Renders the shape into a Graphics object to a specified scale. More...
 
float RenderToSize (SharedPtr< Graphics > graphics, float x, float y, float width, float height)
 Renders the shape into a Graphics object to a specified size. More...
 
void Save (SharedPtr< Stream > stream, SharedPtr< ImageSaveOptions > saveOptions)
 Renders the shape into an image and saves into a stream. More...
 
void Save (String fileName, SharedPtr< ImageSaveOptions > saveOptions)
 Renders the shape into an image and saves into a file. More...
 

Static Public Member Functions

static const TypeInfoType ()
 
- Static Public Member Functions inherited from NodeRendererBase
static const TypeInfoType ()
 

Constructor & Destructor Documentation

◆ ShapeRenderer()

Aspose::Words::Rendering::ShapeRenderer::ShapeRenderer ( System::SharedPtr< Aspose::Words::Drawing::ShapeBase shape)

Initializes a new instance of this class.

Parameters
shapeThe DrawinML shape object that you want to render.

Member Function Documentation

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::Rendering::ShapeRenderer::GetType ( ) const
overridevirtual

◆ Is()

virtual bool Aspose::Words::Rendering::ShapeRenderer::Is ( const System::TypeInfo target) const
overridevirtual

◆ Type()

static const System::TypeInfo& Aspose::Words::Rendering::ShapeRenderer::Type ( )
static