.NET API for Image Processing

Create, manipulate, draw or convert images without requiring any image editor.

  Download Free Trial
Aspose.Imaging for .NET

Aspose.Imaging for .NET

 
 

Aspose.Imaging for .NET is a library offering advanced image processing features. Developers can create, edit, draw or convert images in their own application. Image export and conversion is the one of API core feature along with its ability to save in Adobe Photoshop native formats without having Photoshop application or any other image editor installed.

Aspose.Imaging for .NET is a flexible, stable and powerful API, capable of processing the most commonly used formats along with some special formats such as DjVu, DICOM, WebP & DNG. Moreover, it extends the native support for image formats & processing functions for .NET and .NET Core.

 

Advanced Image Processing API Features

 

 

Create images from scratch

 

Load & edit existing ones 

 

Export images to a variety of formats

 

Crop, resize & rotate-flip

 

Add watermark to images

 

Extract frames from multi-page Tiff

 

Draw images using pixel manipulation

 

Draw images using Graphics & GraphicsPath

 

Draw lines, curves, rectangles & other geometric shapes

 

Fill closed shapes with solid colors, gradients or textures

 

Draw text while controlling the font aspects

 

Save SVG with fonts embedded or exported

Inter-convert Image Formats

Along with the rich set of processing routines, API also provides an array of advanced algorithms that makes it an all-in-one solution for image conversion. These algorithms are encapsulated in specialized classes, that are simple to use and can export images to conventional raster formats along with PSD, WMF, EMF, DjVu, DICOM, DNG & WebP formats with reliability.

Using this library, format conversion is as simple as changing the file extension to the desired format.

Save image in different formats - C#

// load file to be converted
using (var img = Aspose.Imaging.Image.Load(dir + "template.jpg"))
{
    // save in different formats
    img.Save(dir + "output.webp", new Aspose.Imaging.ImageOptions.WebPOptions());
    img.Save(dir + "output.psd ", new Aspose.Imaging.ImageOptions.PsdOptions());
    img.Save(dir + "output.tiff", new Aspose.Imaging.ImageOptions.TiffOptions(TiffExpectedFormat.Default));
}

Dynamically Draw Images

Aspose.Imaging for .NET supports an advanced set of drawing features along with the core functionality. Developers can draw on image surface either by manipulating the pixel information or by using the advanced functionality like Graphics and Paths.

.NET image library enables you to easily draw lines, curves, rectangles & other geometric shapes, fill closed shapes with solid colors or gradients & textures, draw text with options for fine control over the font and draw images by loading existing image data.

Recover Data from Broken TIFF Files

Aspose.Imaging for .NET provides extensive support for the TIFF file format including the feature of data recovery, using which the developers can extract the data from a broken image with some loss. The data recovery allows loading a TIFF file that has improper data layout or corrupted data strips. Data recovery replaces the corrupted data with any color, and the resultant image can be further processed without experiencing errors.

Recover damaged TIFF file - C#

// create an instance of LoadOptions
var loadOptions = new Aspose.Imaging.LoadOptions();
// set recovery mode & color for broken strips 
loadOptions.DataRecoveryMode = Aspose.Imaging.DataRecoveryMode.ConsistentRecover;
loadOptions.DataBackgroundColor = Aspose.Imaging.Color.Red;
// load broken TIFF
using (var img = Aspose.Imaging.Image.Load(dir + "template.tiff", loadOptions))
{
    // do processing
}
 

Support and Learning Resources

 

Aspose.Imaging offers individual Imaging APIs for other popular development environments as listed below: