Catatan Rilis Aspose.PSD untuk .NET 23.1
Contents
[
Hide
]
Halaman ini berisi catatan rilis untuk Aspose.PSD untuk .NET 23.1
Kunci | Ringkasan | Kategori |
---|---|---|
PSDNET-401 | Dukungan vstkResource | Fitur |
PSDNET-1346 | Menambahkan sifat BaselineDirection/IsStandardVerticalRomanAlignmentEnabled yang dapat diedit ke antarmuka IText | Fitur |
PSDNET-181 | PSD tidak dikonversi dengan benar ke JPEG | Bug |
PSDNET-958 | PSB ke PDF gagal untuk file besar | Bug |
PSDNET-1171 | Menambahkan pemrosesan masker penjepit ke lapisan penyesuaian | Bug |
PSDNET-1252 | Setelah meresize seluruh gambar dan kemudian meresize lapisan spesifik Aspose.PSD melempar pengecualian saat menyimpan lapisan | Bug |
Perubahan API Publik
API Ditambahkan:
- 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 Dihapus:
- Tidak ada
Contoh Penggunaan:
PSDNET-181. PSD tidak dikonversi dengan benar ke JPEG
string srcFile = "helicopter.psd";
string outputJpg = "output.jpg";
using (var psdImage = (PsdImage)Image.Load(srcFile))
{
psdImage.Save(outputJpg , new JpegOptions());
}
PSDNET-401. Dukungan 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 ke PDF gagal untuk file besar
string inputPath = "SteveKohli-CarTOP.psb";
string outputPath ="output.pdf";
using (var image = Image.Load(inputPath))
{
image.Save(outputPath, new PdfOptions());
}
PSDNET-1171. Menambahkan pemrosesan masker penjepit ke lapisan penyesuaian
string srcFile = "helicopter_part.psd";
string outputJpg = "output.jpg";
using (var psdImage = (PsdImage)Image.Load(srcFile))
{
psdImage.Save(outputJpg , new JpegOptions());
}
PSDNET-1252. Setelah meresize seluruh gambar dan kemudian meresize lapisan spesifik, Aspose.PSD melempar pengecualian saat menyimpan lapisan
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))
{
// Pertama kita meresize seluruh gambar
image.Resize(110, 90);
var layers = image.Layers;
var layerOk = layers[0];
layerOk.Resize(100, 80);
var layerException = layers[1];
layerException.Resize(100, 80);
// Di sini semuanya akan baik-baik saja
layerOk.Save(imgFile1, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
// Sekarang di sini semuanya akan baik-baik saja
layerException.Save(imgFile2, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
PSDNET-1346. Menambahkan sifat BaselineDirection/IsStandardVerticalRomanAlignmentEnabled yang dapat diedit ke antarmuka IText
// Kode berikut menunjukkan kemampuan untuk mengedit sifat baru IsStandardVerticalRomanAlignmentEnabled.
// Ini tidak memengaruhi rendering saat ini, tetapi hanya memungkinkan Anda untuk mengedit nilai properti.
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)
{
// Pembacaan yang benar
}
else
{
throw new Exception("Pembacaan nilai properti IsStandardVerticalRomanAlignmentEnabled tidak benar");
}
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)
{
// Pembacaan yang benar
}
else
{
throw new Exception("Pembacaan nilai properti IsStandardVerticalRomanAlignmentEnabled tidak benar");
}
}