Aspose.Imaging for .NET is a library offering advanced image processing features. Developers can create, edit or convert images in their own application. Also Aspose. Imaging library supports drawing and work with graphic primitives. Image export and conversion (including uniform multi-page image processing) is the one of API core features along with image transformations (resize, crop, flip&rotate, binarization, grayscale, adjust), advanced image manipulation features (filtering, dithering, masking, deskewing) and memory optimization strategies.
Directory | Description |
---|---|
Demos | Source code for the live demos hosted at https://products.aspose.app/imaging/family. |
Examples | A collection of .NET examples that help you learn the product features. |
Plugins | Plugins related to Aspose.Imaging for .NET product. |
- Draw raster images with graphics.
- Draw vector images.
- Convert images to various formats.
- Apply masking as well as Median & Wiener filters.
- Crop, rotate & resize images via API.
- De-skew & transform images.
- Set image properties.
- Work with multipage image formats.
Raster Formats: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, DICOM, TGA, ICO
Metafiles: EMF, WMF
Compressed metafiles: EMZ, WMZ
Other: WebP, Svg, Svgz (compressed Svg), DXF
Animation: Apng
Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas
Various: DjVu, DNG, ODG, EPS(raster preview only), CMX, CDR, DIB, OTG, FODG
Aspose.Imaging for .NET can be used to develop applications on Windows Desktop (x86, x64), Windows Server (x86, x64), Windows Azure, as well as Linux x64. The supported platforms include .NET Framework version 2.0 or higher.
Are you ready to give Aspose.Imaging for .NET a try? Simply execute Install-Package Aspose.Imaging
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Imaging for .NET and want to upgrade the version, please execute Update-Package Aspose.Imaging
to get the latest version.
using (Image image = Image.Load(dir + "template.jpg"))
{
image.Resize(300, 300);
image.Save(dir + "output.jpg");
}
// image width and height
int width = 500;
int height = 300;
// where created image to store
string path = @"createdImage.png";
// create options
PngOptions options = new PngOptions() { Source = new FileCreateSource(path, false) };
using (PngImage image = (PngImage)Image.Create(options, width, height))
{
// create and initialize an instance of Graphics class
// and Clear Graphics surface
Graphics graphic = new Graphics(image);
graphic.Clear(Color.Green);
// draw line on image
graphic.DrawLine(new Pen(Color.Blue), 9, 9, 90, 90);
// resize image
int newWidth = 400;
image.ResizeWidthProportionally(newWidth, ResizeType.LanczosResample);
// crop the image to specified area
Aspose.Imaging.Rectangle area = new Aspose.Imaging.Rectangle(10,10,200,200);
image.Crop(area);
image.Save();
}
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License