.NET APIs to manipulate images

Deliver .NET applications having the ability to 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 an advanced image processing API that allows the developers to create, edit, draw or convert images in their .NET applications. It works independent of other applications, and allows saving to Adobe PhotoShop® native format without having PhotoShop application or any other image editor installed on the machine.

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

 

Advanced Image Processing API Features

 

 

Create images from scratch

 

Load & edit existing images

 

Export images to a variety of formats

 

Crop, resize & rotate-flip images

 

Add watermark to images

 

Extract frames from multi-page Tiff image

 

Draw images using pixel manipulation

 

Draw images using Graphics & GraphicsPath

 

Draw lines, curves, rectangles & other geometric shape

 

Fill closed shapes with solid colors, gradients or textures

 

Draw text while controlling the font aspects

 

Draw images by loading existing image data

Inter-convert Image Formats

Along with rich set of image processing routines, Aspose.Imaging for .NET 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 image formats along with PSD, WMF, EMF, DjVu, DICOM, DNG & WebP formats with reliability.

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

Save image in different formats - C#

// load file to be converted
using (var image = Aspose.Imaging.Image.Load(dir + "template.jpg"))
{
    // save in different formats
    image.Save(dir + "output.webp", new Aspose.Imaging.ImageOptions.WebPOptions());
    image.Save(dir + "output.psd ", new Aspose.Imaging.ImageOptions.PsdOptions());
    image.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.

Aspose.Imaging for .NET API 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 image = 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: