Aspose.PSD senior PSD file format operation API, Adobe Photoshop without any dependencies. API allows you to create or edit a Photoshop file, and provide updates layer properties, add watermarks, or perform graphics operations to convert one file format to another file function.
Aspose.PSD for .NET support for PSD and PSB file formats loaded and processed, and allows you to export a variety of raster image formats, such as TIFF, JPEG, PNG, GIF, BMP and so on.
General features
Overview Aspose.PSD for .NET functionality.
Supported file formats
Loaded in your application, create or edit Photoshop PSD and PSB files. Currently only available for .NET and Java platforms.
Platform independence
Aspose.PSD for .NET support any .NET Framework 2.0 from the beginning.
Advanced API functions to manipulate .NET PSD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PSD will be exported to various raster formats
Aspose.PSD for .NET provides a PSD file export to any supported raster image format features, just a few lines of code.
// load an existing PSD image as Imageusing (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 layer
Aspose.PSD for .NET allows you to access the PSD layers, and in which you can draw an image or text. You can merge layers, update the text on the layer, set the layer effect or exported as image. You can also use PSD .NET API to detect flatten PSD files or create thumbnails.
To read or create a PSD file
Aspose.PSD for .NET not only supports loading PSD and PSB file formats for manipulation and transformation, but also provides created from scratch PSD and PSB files function. .NET developers can use the API automation solutions might help them solve the problem.
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 with its imaging function library, such as color adjustment. Developers can easily adjust the brightness of the raster image, contrast or gamma API loaded. In addition, developers can shake or blurring of dynamic images, and the use of the popular filter, comprising Median, Gauss Wiener, Motion Wiener and Bradley Threshold ..
If you are interested in any technology or product Aspose problem can join Aspose exchange group (642 018 183)