LengthRecord.PathOperations
LengthRecord.PathOperations property
Ottiene o imposta le operazioni sul percorso.
public PathOperations PathOperations { get; set; }
Esempi
L’esempio di codice seguente illustra il supporto delle nuove proprietà LengthRecord, PathOperations (operazioni booleane), ShapeIndex e BezierKnotRecordsCount.
[C#]
string sourceFilePath = "PathOperationsShape.psd";
string outputFilePath = "out_PathOperationsShape.psd";
using (var im = (PsdImage)Image.Load(sourceFilePath))
{
VsmsResource resource = null;
foreach (var layerResource in im.Layers[1].Resources)
{
if (layerResource is VsmsResource)
{
resource = (VsmsResource)layerResource;
break;
}
}
LengthRecord lengthRecord0 = (LengthRecord)resource.Paths[2];
LengthRecord lengthRecord1 = (LengthRecord)resource.Paths[7];
LengthRecord lengthRecord2 = (LengthRecord)resource.Paths[11];
// Qui cambiamo il modo di combinare le forme.
lengthRecord0.PathOperations = PathOperations.ExcludeOverlappingShapes;
lengthRecord1.PathOperations = PathOperations.IntersectShapeAreas;
lengthRecord2.PathOperations = PathOperations.SubtractFrontShape;
im.Save(outputFilePath);
}
Guarda anche
- enum PathOperations
- class LengthRecord
- spazio dei nomi Aspose.PSD.FileFormats.Core.VectorPaths
- assemblea Aspose.PSD