.NET API to manipulate Photoshop files on the fly

.NET API to manipulate Photoshop files on the fly

Create, read, edit and convert PSD and PSB files from .NET applications

 

 

 

 

 

Aspose.PSD for .NET provides extensive manipulation capabilities for PSD and PSB file formats without the need for Adobe Photoshop.

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

 

Overview of Aspose.PSD for .NET API.

 

Features of image processing Photoshop Features
  • Rotate or Flip
  • Scale or Crop
  • Mixing
  • Read or Write Exif Data
  • Matrix transformations
  • Vector in Raster Conversion
  • Drafting and filling out forms
  • Adjust brightness, contrast or gamma

Aspose.PSD
for .NET

  • PSD and PSB File Creation
  • PSD and PSB File Download
  • Raw Data Processing
  • RLE compression
  • Convert to images

 

Aspose.PSD for .NET supports the most popular Photoshop and raster image formats

 

⇑⇓  Input/Output Output only  
  • Photoshop: PSD, PSB

Aspose.PSD
for .NET

  • Raster formats: TIFF, JPEG, PNG, GIF, BMP, JPEG2000

 

Aspose.PSD for .NET supports any .NET framework since version 2.0

 

Aspose.PSD
for .NET
Framework .NET

 

Advanced API capabilities

 

Convert Photoshop files Create a Photoshop file from scratch Upload existing Photoshop files
Clip in a rectangular area Create and fill out basic forms Crop, rotate, and resize images

 

Export of PSDs to various raster formats

Aspose.PSD for .NET provides the ability to export PSD files to any of the supported bitmap formats with just a few lines of code.

Convert PSD to PNG, JPEG and 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));
}

Accessing and Manipulating PSD Layers

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

Read or Create ASPOSE.PSD for PSD Files. NET does not only support loading PSD and PSB file formats for manipulation and conversion, but it also provides the ability to create PSD and PSB files from scratch. . NET developers can use APIs to automate scripts that can help them along the way.

Creating a 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 image processing

Aspose.PSD for . NET provides basic image processing functions, such as color correction using its class libraries. Developers can easily adjust the brightness, contrast, or gamma on a bitmap of a loaded API. In addition, developers can dynamically shake or blur images, and use popular filters including medians, Wiener Gauss, Wiener Motion, and Bradley’s Threshold.