Aspose.PSD for .NET 23.1 - 릴리스 노트
Contents
[
Hide
]
이 페이지에는 Aspose.PSD for .NET 23.1의 릴리스 노트가 포함되어 있습니다.
키 | 요약 | 카테고리 |
---|---|---|
PSDNET-401 | vstkResource 지원 | 기능 |
PSDNET-1346 | IText 인터페이스에 편집 가능한 BaselineDirection/IsStandardVerticalRomanAlignmentEnabled 속성 추가 | 기능 |
PSDNET-181 | PSD를 JPEG로 제대로 변환하지 않음 | 버그 |
PSDNET-958 | 대용량 파일에서 PSB를 PDF로 변환하지 못하는 문제 | 버그 |
PSDNET-1171 | 조정 레이어의 클리핑 마스크 처리 추가 | 버그 |
PSDNET-1252 | 전체 이미지 크기 조정 후 특정 레이어 크기 조정 시 Aspose.PSD가 레이어 저장 시 예외를 발생시킴 | 버그 |
공개 API 변경 사항
추가된 API:
- P:Aspose.PSD.FileFormats.Psd.Layers.Text.ITextStyle.IsStandardVerticalRomanAlignmentEnabled
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineCapType
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineCapType.RoundCap
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineCapType.SquareCap
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineCapType.ButtCap
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineJoinType
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineJoinType.BevelJoin
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineJoinType.RoundJoin
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.LineJoinType.MiterJoin
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.#ctor
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.Signature
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.Key
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.Length
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.PsdVersion
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleVersion
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeEnabled
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.FillEnabled
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineDashOffset
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleMiterLimit
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineCapType
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineCapWidth
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineWidth
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineJoinType
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleLineAlignment
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleScaleLock
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleStrokeAdjust
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleBlendMode
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleOpacity
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleResolution
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.StrokeStyleContent
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.Save(Aspose.PSD.StreamContainer,System.Int32)
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.StrokeResources.VstkResource.TypeToolKey
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.#ctor
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.Levels
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.Signature
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.Key
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.Length
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.PsdVersion
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.Save(Aspose.PSD.StreamContainer,System.Int32)
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.PostResource.TypeToolKey
제거된 API:
- 없음
사용 예제:
PSDNET-181. PSD를 JPEG로 제대로 변환하지 않음
string srcFile = "helicopter.psd";
string outputJpg = "output.jpg";
using (var psdImage = (PsdImage)Image.Load(srcFile))
{
psdImage.Save(outputJpg , new JpegOptions());
}
PSDNET-401. vstkResource 지원
string srcFile = "StrokeShapeTest1.psd";
string dstFile = "StrokeShapeTest2.psd";
using (PsdImage image = (PsdImage)Image.Load(srcFile))
{
Layer layer = image.Layers[1];
foreach (LayerResource resource in layer.Resources)
{
if (resource is VstkResource)
{
VstkResource vstkResource = (VstkResource)resource;
vstkResource.StrokeStyleLineAlignment = StrokePosition.Outside;
vstkResource.StrokeStyleLineWidth = 20;
}
}
image.Save(dstFile);
}
PSDNET-958. 대용량 파일에서 PSB를 PDF로 변환하지 못하는 문제
string inputPath = "SteveKohli-CarTOP.psb";
string outputPath ="output.pdf";
using (var image = Image.Load(inputPath))
{
image.Save(outputPath, new PdfOptions());
}
PSDNET-1171. 조정 레이어의 클리핑 마스크 처리 추가
string srcFile = "helicopter_part.psd";
string outputJpg = "output.jpg";
using (var psdImage = (PsdImage)Image.Load(srcFile))
{
psdImage.Save(outputJpg , new JpegOptions());
}
PSDNET-1252. 전체 이미지 크기 조정 후 특정 레이어 크기 조정 시 Aspose.PSD가 레이어 저장 시 예외를 발생시킴
string sourceFile = "source.psd";
string imgFile1 = "img1.png";
string imgFile2 = "img2.png";
var loadOptions = new PsdLoadOptions()
{
ReadOnlyMode = false,
LoadEffectsResource = true
};
using (var image = (PsdImage)Image.Load(sourceFile, loadOptions))
{
// 우선 전체 이미지 크기를 조정합니다
image.Resize(110, 90);
var layers = image.Layers;
var layerOk = layers[0];
layerOk.Resize(100, 80);
var layerException = layers[1];
layerException.Resize(100, 80);
// 여기서는 모두 잘 작동합니다
layerOk.Save(imgFile1, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
// 이제 여기서도 모두 잘 작동합니다
layerException.Save(imgFile2, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
PSDNET-1346. IText 인터페이스에 편집 가능한 BaselineDirection/IsStandardVerticalRomanAlignmentEnabled 속성 추가
// 다음 코드는 새 IsStandardVerticalRomanAlignmentEnabled 속성을 편집할 수 있는 능력을 보여줍니다.
// 현재 렌더링에는 영향을 주지 않지만 속성 값을 편집할 수만 있습니다.
string src = "1346test.psd";
string output = "out_1346test.psd";
using (var image = (PsdImage)Image.Load(src))
{
var textLayer = image.Layers[1] as TextLayer;
var textPortion = textLayer.TextData.Items[0];
if (textPortion.Style.IsStandardVerticalRomanAlignmentEnabled)
{
// 올바른 읽기
}
else
{
throw new Exception("IsStandardVerticalRomanAlignmentEnabled 속성 값의 잘못된 읽기");
}
textPortion.Style.IsStandardVerticalRomanAlignmentEnabled = false;
textLayer.TextData.UpdateLayerData();
image.Save(output);
}
using (var image = (PsdImage)Image.Load(output))
{
var textLayer = image.Layers[1] as TextLayer;
var textPortion = textLayer.TextData.Items[0];
if (!textPortion.Style.IsStandardVerticalRomanAlignmentEnabled)
{
// 올바른 읽기
}
else
{
throw new Exception("IsStandardVerticalRomanAlignmentEnabled 속성 값의 잘못된 읽기");
}
}