原創|產品更新|編輯:李顯亮|2020-06-01 09:27:57.560|閱讀 191 次
概述:.NET版Aspose.PSD迎來了5月的最新更新!新增了如下四大新功能:支持圖層組的圖層蒙版、支持文檔轉換進度、支持Nvrt資源、支持灰度ColorMode PSD圖像保存,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.PSD for .Net是高級PSD和入門級AI文件格式操作API,允許創建和編輯Photoshop文件,并提供更新圖層屬性,添加水印,執行圖形操作或將一種文件格式轉換為另一種文件的功能,沒有任何Adobe Photoshop或Adobe Illustrator依賴項。
令人興奮的是,.NET版Aspose.PSD迎來了5月的最新更新!新增了如下四大新功能:
>>你可以點擊這里下載Aspose.PSD for .NET v20.5測試體驗
key | 概述 | 類別 |
---|---|---|
PSDNET-595 | 支持圖層組的圖層蒙版 | 新功能 |
PSDNET-201 | 支持文檔轉換進度 | 新功能 |
PSDNET-275 | 支持Nvrt資源(反向調整層資源) | 新功能 |
PSDNET-124 | 支持灰度ColorMode PSD圖像保存(每通道16位) | 新功能 |
PSDNET-587 | 通過ITextPortion進行的文本對齊不適用于從右到左的語言。輸出文件已損壞。 | Bug修復 |
PSDNET-604 | 嘗試使用Lab Color和8位/通道打開特定的Psd文件時發生異常 | Bug修復 |
PSDNET-598 | 修復使用灰度ColorMode將每通道16位保存為PSD圖像到每通道8位灰度PSD格式的保存圖像 | Bug修復 |
PSDNET-599 | 修復使用灰度ColorMode將每通道16位保存為PSD圖像每通道16位的保存PSD圖像的問題 | Bug修復 |
string srcFile = "psdnet595.psd"; string outputPng = "output.png"; string outputPsd = "output.psd"; using (var input = (PsdImage)Image.Load(srcFile)) { input.Save(outputPng, new PngOptions()); input.Save(outputPsd); }
string sourceFilePath = "Apple.psd"; Stream outputStream = new MemoryStream(); ProgressEventHandler localProgressEventHandler = delegate(ProgressEventHandlerInfo progressInfo) { string message = string.Format( "{0} {1}: {2} out of {3}", progressInfo.Description, progressInfo.EventType, progressInfo.Value, progressInfo.MaxValue); Console.WriteLine(message); }; Console.WriteLine("---------- Loading Apple.psd ----------"); var loadOptions = new PsdLoadOptions() { ProgressEventHandler = localProgressEventHandler }; using (PsdImage image = (PsdImage)Image.Load(sourceFilePath, loadOptions)) { Console.WriteLine("---------- Saving Apple.psd to PNG format ----------"); image.Save( outputStream, new PngOptions() { ColorType = PngColorType.Truecolor, ProgressEventHandler = localProgressEventHandler }); Console.WriteLine("---------- Saving Apple.psd to PSD format ----------"); image.Save( outputStream, new PsdOptions() { ColorMode = ColorModes.Rgb, ChannelsCount = 4, ProgressEventHandler = localProgressEventHandler }); }
using (var psdImage = (PsdImage)Image.Load("InvertAdjustmentLayer.psd")) { foreach (var layer in psdImage.Layers) { if (layer is InvertAdjustmentLayer) { foreach (var layerResource in layer.Resources) { if (layerResource is NvrtResource) { // The NvrtResource is supported. var resource = (NvrtResource)layerResource; break; } } } } }
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn