1. Home
  2.   Accord
  3.   FileFormat.Accord for .NET
FileFormat.Accord for .NET

FileFormat.Accord for .NET

 
 

Simplify processing images Using .NET API

Effortlessly edit images with FileFormat.Accord, open-source .NET API

FileFormat.Accord for .NET This is a fork of the Accord.Net project, which includes the Imaging library. This version for NetStandard 2.0 framework, and uses Aspose.Drawing as a graphics engine, which allows you to create cross-platform applications using lastest .Net platforms.

FileFormat.Accord is available under licenses:

FileFormat.Accord is distributed under LGPL license.

Aspose.Drawing .NET is distributed under Aspose EULA license.

Key Features and Benefits

  • Cross-Platform:Thanks to integration with Aspose.Drawing the library can work with images on the latest versions of .Net on Windows, Linux, MacOS platforms

How to Get Started with FileFormat.Accord for .NET

Getting started with FileFormat.Accord is quick and easy. Simply follow these steps:

  • Install FileFormat.Accord: Install the FileFormat.Accord package via NuGet Package Manager or .NET CLI.
  • Integrate with Your Project: Reference the FileFormat.Accord library in your C# project.
  • Start Processing: Utilize the simple API provided by FileFormat.Accord processing images.

The recommended way to install FileFormat.Accord for .NET is using NuGet. Please use the following command for a smooth installation.

Install FileFormat.Accord for .NET via NuGet

NuGet> Install-Package FileFormat.Accord 
You can also download it directly from GitHub.

Apply grayscale filter in C#

This code converts the image to grayscale format.

Copy and paste the code snippet below into your main file and execute the program.

Apply GrayWorld filter

 
using System.Drawing.AsposeDrawing;
using FileFormat.Accord.Imaging.Filters;
using Image = FileFormat.Accord.Imaging.AForge.Imaging.Image;

//Set license Aspose.Drawing
System.Drawing.AsposeDrawing.License lic = new License();
lic.SetLicense("license.lic");

//Load image
using (var image = Image.FromFile("lena_color.jpg"))
{   
	//Create filter
    var grayWorld = new GrayWorld();
	
	//apply filter
    grayWorld.ApplyInPlace(image);
	
	//save
    image.Save("lena_gray.jpg");
}

You can see other examples directly on the Accord website.

 English