LengthRecord.LengthRecord
Contents
[
Hide
]LengthRecord(byte[])
Initializes a new instance of the LengthRecord
class.
public LengthRecord(byte[] data)
Parameter | Type | Description |
---|---|---|
data | Byte[] | The record data. |
Exceptions
exception | condition |
---|---|
!:PsdImageArgumentException | Incorrect data for LengthRecord creation |
See Also
- class LengthRecord
- namespace Aspose.PSD.FileFormats.Core.VectorPaths
- assembly Aspose.PSD
LengthRecord()
Initializes a new instance of the LengthRecord
class.
public LengthRecord()
Examples
The following code example demonstrates the support of new LengthRecord properties, PathOperations (boolean operations), ShapeIndex and 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];
// Here we changin the way to combining betwen shapes.
lengthRecord0.PathOperations = PathOperations.ExcludeOverlappingShapes;
lengthRecord1.PathOperations = PathOperations.IntersectShapeAreas;
lengthRecord2.PathOperations = PathOperations.SubtractFrontShape;
im.Save(outputFilePath);
}
See Also
- class LengthRecord
- namespace Aspose.PSD.FileFormats.Core.VectorPaths
- assembly Aspose.PSD