Path.Create Method (Path, Int32, Int32)

Creates a Path from the existing clipping path.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public static Path Create(
	Path clippingPath,
	int width,
	int height
)

Parameters

clippingPath

Type: Aurigma.GraphicsMill.Codecs.ClippingPath.Path

The clipping path.
width

Type: System.Int32

Width of an image containing the clipping path.
height

Type: System.Int32

Height of an image containing the clipping path.

Remarks

The clipping path is represented in relative coordinates, therefore you need to specify the height and width of the image.

Examples

C#
using (var reader = new JpegReader(@"Images\1.jpg"))
{
    var clippingPath = reader.ClippingPaths[0];
    var path = Path.Create(clippingPath, reader.Width, reader.Height);
}

See Also

Reference