如果你需要编辑PSD文件,这个编辑器是最好的在线解决方案之一。PSD 编辑器支持 WYSIWYG 服务器端编辑,包括文本更新、画笔操作、创建新图层、重新排序图层和更改其可见性。PSD 编辑器在后端使用 Aspose.PSD,所以如果你需要更复杂的操作,你可以自己用高代码完成 PSD API.
You can reproduce the main functionality of this built-in app using Aspose.PSD for .NET
// How to update Text Layer in PSD File
using (PsdImage psdImage = (PsdImage)Image.Load("layers.psd"))
{
foreach (var layer in psdImage.Layers)
{
if (layer is TextLayer)
{
TextLayer textLayer = layer as TextLayer;
textLayer.UpdateText("test update", new Point(0, 0), 15.0f, Color.Purple);
}
}
psdImage.Save("UpdateTextLayerInPSDFile_out.psd");
}
// Update Layer in PSD with Graphics
// Create an instance of Image
using (Image image = new PsdImage(100, 100))
{
// Create and initialize an instance of Graphics class and clear Graphics surface
Graphics graphic = new Graphics(image);
graphic.Clear(Color.Yellow);
// Draw an arc shape by specifying the Pen object having red black color and coordinates, height, width, start & end angles
int width = 100;
int height = 200;
int startAngle = 45;
int sweepAngle = 270;
// Draw arc to screen and save all changes.
graphic.DrawArc(new Pen(Color.Black), 0, 0, width, height, startAngle, sweepAngle);
// export image to bmp file format.
image.Save(outpath, saveOptions);
}
You can download Aspose.PSD for .NET from Nuget package manager
You can reproduce the main functionality of this built-in app using Aspose.PSD for Java
public static void updateTextLayer() {
try (PsdImage psdImage = (PsdImage) Image.load("layers.psd")) {
for (com.aspose.psd.Layers.ILayer layer : psdImage.getLayers()) {
if (layer instanceof TextLayer) {
TextLayer textLayer = (TextLayer) layer;
textLayer.updateText("test update", new Point(0, 0), 15.0f, Color.getPurple());
}
}
psdImage.save("UpdateTextLayerInPSDFile_out.psd");
}
}
public static void updateLayerWithGraphics() {
try (Image image = new PsdImage(100, 100)) {
Graphics graphic = new Graphics(image);
graphic.clear(Color.getYellow());
int width = 100;
int height = 200;
int startAngle = 45;
int sweepAngle = 270;
graphic.drawArc(new Pen(Color.getBlack()), 0, 0, width, height, startAngle, sweepAngle);
image.save(outpath, saveOptions);
}
}
You can download Aspose.PSD for Java from Aspose Repository
Check the following list of documentation links:
Please check the offical documentation https://docs.aspose.com/psd/
This App is completely free, but it just a small piece of functionality that offers for you Aspose.PSD library. You can make your own app with any functionality of Aspose.PSD. If you can not find needed feature in Aspose.PSD, you can post on PSD Support Forum. The great support, different priceing plans, prioritized bug fixes and feature releasing for the Paid Support Customers.
List of Aspose.PSD versions for different configurations |
Aspose.PSD for .NET | Aspose.PSD for Java |
 |  |
Aspose.PSD for .NET has the version for the most popular .NET versions including: .NET Framework 2, 3.5, 4.0, 4.0CP, .netstandard 2, .NET 5, 6, 7. Version of .NET Library for .NET 7 is suitable for the mobile development | Aspose.PSD for Java made on the Java 1.6, so it can be used in the any popular Java configurations. It's suitable for Cross-platform developement |
Official Aspose.PSD for .NET page | Official Aspose.PSD for Java page |
Aspose.PSD for .NET Pricing plans | Aspose.PSD for Java Pricing plans |
Please check the support forum. Where you can feel the real customer care |
PSD 编辑器使用服务器端处理文件。Aspose.PSD 是为数不多的可用于创建 PSD 编辑软件的产品之一。它既支持读取 PSD 资源,也支持渲染更新后的 PSD 文件实体。这款 PSD 编辑器呈现的 PSD 文本图层与原来的 Adobe Photoshop 文本引擎非常接近。您也可以使用此编辑器创建新的 PSD 图层,然后使用 “画笔操作” 对其进行更新。PSD 的更新可以从任何设备和操作系统处理。PSD 处理软件通常仅支持查看 PSD 文件资源,例如 EXIF 数据、图层创建时间,但是 Aspose.PSD 可以在许多情况下编辑 PSD 文件,包括调整图层、填充图层、文本图层、智能对象。如果 PSD 编辑器的功能不足以满足您的需求,请查看独立的本地解决方案 PSD Java 以及最新版本的 PSD .Net 还有 .net Framework 2.0 +