LengthRecord.PathOperations
LengthRecord.PathOperations property
Haalt of stelt de padbewerkingen in.
public PathOperations PathOperations { get; set; }
Voorbeelden
Het volgende codevoorbeeld demonstreert de ondersteuning van nieuwe LengthRecord-eigenschappen, PathOperations (booleaanse bewerkingen), ShapeIndex en 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];
// Hier veranderen we de manier van combineren tussen vormen.
lengthRecord0.PathOperations = PathOperations.ExcludeOverlappingShapes;
lengthRecord1.PathOperations = PathOperations.IntersectShapeAreas;
lengthRecord2.PathOperations = PathOperations.SubtractFrontShape;
im.Save(outputFilePath);
}
Zie ook
- enum PathOperations
- class LengthRecord
- naamruimte Aspose.PSD.FileFormats.Core.VectorPaths
- montage Aspose.PSD