.NET APIs to manipulate Photoshop files on the fly

Create, Read, Edit & Convert PSD & PSB files from within .NET applications.

  Download Free Trial
Aspose.PSD for .NET

Aspose.PSD for .NET

 
 

Aspose.PSD for .NET provides extensive manipulation capabilities for PSD & PSB file formats without requiring Adobe Photoshop.

Aspose.PSD for .NET allows to create or edit the Photoshop files as well as provides the ability to update layer properties, add watermarks, perform graphics operations or convert one file format to another.

 

Advanced .NET PSD Manipulation API Features

 

 

Convert Photoshop files to images

 

Create a Photoshop file from scratch

 

Load existing Photoshop files

 

Clip to a rectangular region

 

Draw & fill basic shapes

 

Crop, rotate & resize Images

Export PSD to Various Raster Formats

Aspose.PSD for .NET provides the capability to export PSD files to any of supported raster image formats, with just a few lines of code.

Convert PSD to PNG, JPEG & TIFF - C#

// load an existing PSD image as Image
using (var psd = Aspose.PSD.Image.Load(dir + "template.psd"))
{
    // save result in different raster formats with customized attributes
    psd.Save(dir + "output.png", new Aspose.PSD.ImageOptions.PngOptions());
    psd.Save(dir + "output.jpg", new Aspose.PSD.ImageOptions.JpegOptions() { Quality = 70 });
    psd.Save(dir + "output.tiff", new Aspose.PSD.ImageOptions.TiffOptions(Aspose.PSD.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffCcitRle));
}

Access & Manipulate PSD Layers

Aspose.PSD for .NET lets you access layers of a PSD with the ability to draw on it with either image or text. You can merge layers, update text on layers, set effects or export layer as an image. You may also use PSD .NET API to detect flattened PSD files or create thumbnails.

Read or Create PSD Files

Aspose.PSD for .NET not only supports loading PSD & PSB file formats for manipulation & conversion but it also provides the capability to create PSD & PSB files from scratch. .NET developers can use the API to automate scenarios that may help them on their way.

Create PSD from scratch - C#

using (var psd = Aspose.PSD.Image.Create(new Aspose.PSD.ImageOptions.PsdOptions()
{
    Source = new Aspose.PSD.Sources.FileCreateSource(dir + "output.psd", false),
    ColorMode = Aspose.PSD.FileFormats.Psd.ColorModes.Rgb,
    CompressionMethod = Aspose.PSD.FileFormats.Psd.CompressionMethod.RLE,
    Version = 4
}, 400, 400))
{
    // draw some graphics over the newly created PSD
    var graphics = new Aspose.PSD.Graphics(psd);
    graphics.Clear(Aspose.PSD.Color.White);
    graphics.DrawEllipse(new Aspose.PSD.Pen(Aspose.PSD.Color.Red, 6), new Aspose.PSD.Rectangle(0, 0, 400, 400));
    psd.Save();
}

Various Imaging Filters

Aspose.PSD for .NET provides the core imaging features such as color adjustment via its class libraries. Developers can easily adjust brightness, contrast or gamma on raster image loaded by the API. Furthermore, developers can dynamically dither or blur images as well as use popular filters including Median, Gauss Wiener, Motion Wiener and Bradley Threshold.

 

Support and Learning Resources