Aspose::Slides::Util::ShapeUtil Class Reference

Offer methods which helps to process shapes objects. More...

Public Member Functions

 ShapeUtil ()=delete
 

Static Public Member Functions

static System::SharedPtr< IGeometryPathGraphicsPathToGeometryPath (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > graphicsPath)
 Converts a System::Drawing::Drawing2D::GraphicsPath to the IGeometryPath More...
 
static System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathGeometryPathToGraphicsPath (System::SharedPtr< IGeometryPath > geometryPath)
 Converts IGeometryPath to System::Drawing::Drawing2D::GraphicsPath. More...
 

Detailed Description

Offer methods which helps to process shapes objects.

Constructor & Destructor Documentation

◆ ShapeUtil()

Aspose::Slides::Util::ShapeUtil::ShapeUtil ( )
delete

Member Function Documentation

◆ GeometryPathToGraphicsPath()

static System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath> Aspose::Slides::Util::ShapeUtil::GeometryPathToGraphicsPath ( System::SharedPtr< IGeometryPath geometryPath)
static

Converts IGeometryPath to System::Drawing::Drawing2D::GraphicsPath.

GraphicsPath can be transformed in a different ways using its convenient methods and then transformed back into the IGeometryPath to use in GeometryShape via ShapeUtil::GraphicsPathToGeometryPath method.

Parameters
geometryPath
Returns
Graphics path

◆ GraphicsPathToGeometryPath()

static System::SharedPtr<IGeometryPath> Aspose::Slides::Util::ShapeUtil::GraphicsPathToGeometryPath ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath graphicsPath)
static

Converts a System::Drawing::Drawing2D::GraphicsPath to the IGeometryPath

Return value of the method call can be used to change the geometry of a IGeometryShape object with IGeometryShape::SetGeometryPaths method.

Parameters
graphicsPathGraphics path
Returns
Geometry path