TIFF GIF PDF PNG JPEG
Aspose.PSD  for .NET
PSD

Edit the PSD document via C#

Build your own .NET apps to edit PSD files using server-side APIs.

How to Edit PSD File Data Using C#

In order to edit PSD file, we’ll use

Aspose.PSD for .NET

API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open

NuGet

package manager, search for Aspose.PSD and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.PSD

Steps to make some manipulation of PSD file via C#

You need the

aspose.psd.dll

to try the following workflow in your own environment.

  • Load PSD with Image.Load method. Cast it into a PsdImage
  • Use the instance of PsdImage for access to Layers, Resources, and other and other data of the PSD file.
  • Save the changed file using the Save method of the PsdImage instance.

System Requirements

Aspose.PSD for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core.
  • Development environment like Microsoft Visual Studio.
  • Aspose.PSD for .NET referenced in your project.
Here is the easy way to create a new PSD file using C#.
 

Create PSD file - C#

 
The following code demonstrates how to add new layers to the PSD file using C#.
 

Create/Add Layers - C#

 
This example shows how easy is to rename each layer in any PSD file.
 

Change layer name - C#

 
Next, you can see the example of how to change the text in a TextLayer. You can use TextLayer.UpdateText() method to replace all text in the layer with a new one and save all styles. Or use the IText functionality and configure each text portion with its own specific style.
 

Change text in TextLayer - C#

 
  • About Aspose.PSD for .NET API

    Aspose.PSD is a Photoshop format manipulation API. One can generate, modify and convert Adobe Photoshop and Illustrator documents. Moreover, end users can perform graphics operations, update layer properties, add watermarks or render one format to PNG, GIF, BMP, TIFF, JPEG, JPEG2000, PSD, PSB etc. Its a standalone API and does not require Adobe Photoshop installation.

    Visual PSD Online Editor App

    Edit the PSD files by visiting our Live Demos website . The live demo has the following benefits

      No need to download or setup anything
      No need to write any code
      Just upload your PSD file, make some changes and hit "Download" button
      Instantly get the download link for the resultant file

    PSD What is PSD File Format

    PSD, Photoshop Document, represents Adobe Photoshop's native file format used for graphics designing and development. PSD files may include image layers, adjustment layers, layer masks, annotations, file information, keywords and other Photoshop-specific elements. Photoshop files have default extension as .PSD and has a maximum height and width of 30,000 pixels, and a length limit of two gigabytes.

    Read More