原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2020-06-01 09:27:57.560|閱讀 191 次
概述:.NET版Aspose.PSD迎來了5月的最新更新!新增了如下四大新功能:支持圖層組的圖層蒙版、支持文檔轉(zhuǎn)換進(jìn)度、支持Nvrt資源、支持灰度ColorMode PSD圖像保存,歡迎下載體驗(yàn)。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.PSD for .Net是高級PSD和入門級AI文件格式操作API,允許創(chuàng)建和編輯Photoshop文件,并提供更新圖層屬性,添加水印,執(zhí)行圖形操作或?qū)⒁环N文件格式轉(zhuǎn)換為另一種文件的功能,沒有任何Adobe Photoshop或Adobe Illustrator依賴項(xiàng)。
令人興奮的是,.NET版Aspose.PSD迎來了5月的最新更新!新增了如下四大新功能:
>>你可以點(diǎn)擊這里下載Aspose.PSD for .NET v20.5測試體驗(yàn)
key | 概述 | 類別 |
---|---|---|
PSDNET-595 | 支持圖層組的圖層蒙版 | 新功能 |
PSDNET-201 | 支持文檔轉(zhuǎn)換進(jìn)度 | 新功能 |
PSDNET-275 | 支持Nvrt資源(反向調(diào)整層資源) | 新功能 |
PSDNET-124 | 支持灰度ColorMode PSD圖像保存(每通道16位) | 新功能 |
PSDNET-587 | 通過ITextPortion進(jìn)行的文本對齊不適用于從右到左的語言。輸出文件已損壞。 | Bug修復(fù) |
PSDNET-604 | 嘗試使用Lab Color和8位/通道打開特定的Psd文件時發(fā)生異常 | Bug修復(fù) |
PSDNET-598 | 修復(fù)使用灰度ColorMode將每通道16位保存為PSD圖像到每通道8位灰度PSD格式的保存圖像 | Bug修復(fù) |
PSDNET-599 | 修復(fù)使用灰度ColorMode將每通道16位保存為PSD圖像每通道16位的保存PSD圖像的問題 | Bug修復(fù) |
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; } } } } }
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn