Table of Contents

Class PathResourceConverter

Namespace
Aspose.Imaging.FileFormats.Tiff.PathResources
Assembly
Aspose.Imaging.dll

Converts PathResource to GraphicsPath and vice versa.

public static class PathResourceConverter
Inheritance
PathResourceConverter
Inherited Members

Methods

FromGraphicsPath(GraphicsPath, Size)

Converts the GraphicsPath instance to path resources.

public static PathResource[] FromGraphicsPath(GraphicsPath graphicsPath, Size imageSize)

Parameters

graphicsPath GraphicsPath

The graphics path.

imageSize Size

Size of the image.

Returns

PathResource[]

The path resources.

Exceptions

ArgumentNullException

graphicsPath is null.

ToGraphicsPath(PathResource[], Size)

Converts path resources to the GraphicsPath instance.

public static GraphicsPath ToGraphicsPath(PathResource[] pathResources, Size imageSize)

Parameters

pathResources PathResource[]

The path resources.

imageSize Size

Size of the image.

Returns

GraphicsPath

The GraphicsPath instance.

Exceptions

ArgumentNullException

pathResources is null.