没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|产品更新|编辑:李显亮|2020-04-03 11:38:17.440|阅读 275 次
概述:令人兴奋的是,.NET版Aspose.PSD迎来了3月的最新更新!新增了如下六大新功能:支持.Net Core、将Adobe Illustrator文件转换为PDF、增加在一个文本层中呈现不同样式的功能、支持黑白调整层、添加对导出AI格式(版本8)的支持,以支持其他格式、支持PassThrough混合模式处理(仅用于图层组) 。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
Aspose.PSD for .Net是高级PSD和入门级AI文件格式操作API,允许创建和编辑Photoshop文件,并提供更新图层属性,添加水印,执行图形操作或将一种文件格式转换为另一种文件的功能,没有任何Adobe Photoshop或Adobe Illustrator依赖项。
令人兴奋的是,.NET版Aspose.PSD迎来了3月的最新更新!新增了如下六大新功能:
>>你可以点击这里下载Aspose.PSD for .NET v20.2测试体验
| key | 概述 | 类别 |
|---|---|---|
| PSDNET-188 | 支持.Net Core | 新功能 |
| PSDNET-523 | 将Adobe Illustrator文件转换为PDF | 新功能 |
| PSDNET-212 | 增加在一个文本层中呈现不同样式的功能 | 新功能 |
| PSDNET-144 | 支持黑白调整层 | 新功能 |
| PSDNET-233 | 添加对导出AI格式(版本8)的支持,以支持其他格式 | 新功能 |
| PSDNET-540 | 支持PassThrough混合模式处理(仅用于图层组) | 新功能 |
| PSDNET-539 | 异常:加载具有空Unicode Alpha名称资源的图像时,图像加载失败 | Bug修复 |
| PSDNET-541 | 更改LayerGroup的可见性后输出不正确 | Bug修复 |
| PSDNET-516 | 加载PSD图像时的异常:颜色部分(DropShadow资源)必须包含RGB的3个颜色分量或CMYK的4个颜色分量 | Bug修复 |
| PSDNET-536 | 如果使用简单版本的Constructor尝试在新创建的图层上绘制,则为异常 | Bug修复 |
string sourceFile = "rect2_color.ai";
using (var aiImage = (AiImage)Image.Load(sourceFile))
{
aiImage.Save("rect2_color.ai_output.pdf", new PdfOptions());
}
string sourceFile = "text212.psd";
string ethalonFile = "Ethalon_text212.psd";
string outputFile = "Output_text212.psd";
using (var img = (PsdImage)Image.Load(sourceFile))
{
TextLayer textLayer = (TextLayer)img.Layers[1];
IText textData = textLayer.TextData;
ITextStyle defaultStyle = textData.ProducePortion().Style;
ITextParagraph defaultParagraph = textData.ProducePortion().Paragraph;
defaultStyle.FillColor = Color.DimGray;
defaultStyle.FontSize = 51;
textData.Items[1].Style.Strikethrough = true;
ITextPortion[] newPortions = textData.ProducePortions(new string[] { "E=mc", "2\r", "Bold", "Italic\r", "Lowercasetext" }, defaultStyle, defaultParagraph);
newPortions[0].Style.Underline = true; // edit text style "E=mc"
newPortions[1].Style.FontBaseline = FontBaseline.Superscript; // edit text style "2\r"
newPortions[2].Style.FauxBold = true; // edit text style "Bold"
newPortions[3].Style.FauxItalic = true; // edit text style "Italic\r"
newPortions[3].Style.BaselineShift = -25; // edit text style "Italic\r"
newPortions[4].Style.FontCaps = FontCaps.SmallCaps; // edit text style "Lowercasetext"
foreach (var newPortion in newPortions)
{
textData.AddPortion(newPortion);
}
textData.UpdateLayerData();
img.Save(outputFile);
}
voidAssertIsTrue(bool condition, string message)
{
if(!condition)
{
thrownewFormatException(message);
}
}
string sourceFileName ="Apple.psd";
string outputFileName ="Output"+ sourceFileName;
using (PsdImage image = (PsdImage)Image.Load(sourceFileName))
{
AssertIsTrue(image.Layers.Length >=23,"There is not 23rd layer.");
var layer = image.Layers[23] as LayerGroup;
AssertIsTrue(layer !=null,"The 23rd layer is not a layer group.");
AssertIsTrue(layer.Name =="AdjustmentGroup","The 23rd layer name is not 'AdjustmentGroup'.");
AssertIsTrue(layer.BlendModeKey == BlendMode.PassThrough,"AdjustmentGroup layer should have 'pass through' blend mode.");
image.Save(outputFileName,newPsdOptions());
image.Save("OutputApple.png",newPngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
layer.BlendModeKey = BlendMode.Normal;
image.Save("Normal"+ outputFileName,newPsdOptions());
image.Save("NormalOutputApple.png",newPngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
// Example of exporting AI file to PSD and PNG format
string sourceFileName = "form_8.ai";
string outputFileName = "form_8_export";
using (AiImage image = (AiImage)Image.Load(sourceFileName))
{
image.Save(outputFileName + ".psd", new PsdOptions());
image.Save(outputFileName + ".png", new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@ke049m.cn




本文将介绍界面组件Telerik UI for WinForms在今年第三个重大版本2025 Q3中发布的新功能,欢迎下载最新版组件体验!
界面控件DevExpress WinForms v25.2将于今年年末左右更新,新版本将继续升级报表组件功能等,欢迎关注我们及时获取最新消息~
DevExpress WinForms控件v25.1日前已经全新发布,新版本的Ribbon、PDF Viewer(查看器)等组件功能全新升级等,欢迎下载最新版体验!
界面控件DevExpress WinForms v25.2将于今年年末左右更新,新版本将继续升级富文本编辑器控件功能等,欢迎关注我们及时获取最新消息~
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@ke049m.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
半岛外围网上直营