LengthRecord.LengthRecord
내용물
[
숨다
]LengthRecord(byte[])
의 새 인스턴스를 초기화합니다.LengthRecord
클래스.
public LengthRecord(byte[] data)
모수 | 유형 | 설명 |
---|---|---|
data | Byte[] | 레코드 데이터입니다. |
예외
예외 | 상태 |
---|---|
!:PsdImageArgumentException | LengthRecord 생성에 대한 잘못된 데이터 |
또한보십시오
- class LengthRecord
- 네임스페이스 Aspose.PSD.FileFormats.Core.VectorPaths
- 집회 Aspose.PSD
LengthRecord()
의 새 인스턴스를 초기화합니다.LengthRecord
클래스.
public LengthRecord()
예
다음 코드 예제는 새 LengthRecord 속성, PathOperations(부울 연산), ShapeIndex 및 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];
// 여기에서 도형을 결합하는 방법을 변경합니다.
lengthRecord0.PathOperations = PathOperations.ExcludeOverlappingShapes;
lengthRecord1.PathOperations = PathOperations.IntersectShapeAreas;
lengthRecord2.PathOperations = PathOperations.SubtractFrontShape;
im.Save(outputFilePath);
}
또한보십시오
- class LengthRecord
- 네임스페이스 Aspose.PSD.FileFormats.Core.VectorPaths
- 집회 Aspose.PSD