Select language
  1. Products
  2. Aspose.Imaging
  3. Image effect
clearbit icon

Create image effects for .NET

Buy for $99
Share
Instagram Logo Dribbble Logo Twitter Logo Youtube Logo

How to create image effects Using .NET Library

In order to create image effects, we’ll use Aspose.Imaging for .NET API which is a feature-rich, powerful and easy to use image manipulation API for net platform. Open NuGet package manager, search for Aspose.Imaging and install. You may also use the following command from the Package Manager Console.

1
Install-Package Aspose.Imaging

Make image effects via .NET

You need Aspose.Imaging Image effects for .NET metered license to try the code in your environment.

  1. Load the Image with an instance of specific Image class..
  2. Apply image effects to the image
  3. Save or export image in the desired image format, defined by the options

System Requirements

Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Core
  • Development environment like Visual Studio Code or Microsoft Visual Studio.
  • Aspose.Imaging for .NET DLL referenced in your project.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
 using Aspose.Imaging;

namespace CSharpTutorials
{
    class Program
    {
        static void Main(string[] args)
        {
            Metered metered = new Metered();
            metered.SetLicense("***********", // public key
                               "***********"  // private key
                              );
            // This code converts png to jpg             
            using (Image image = Image.Load("tiger.png"))
            {
                var filterRect = new Aspose.Imaging.Rectangle(image.Width / 6, image.Height / 6, image.Width * 2 / 3, image.Height * 2 / 3);
                image.Filter(filterRect, new GaussWienerFilterOptions(5, 5));
                image.Save( "tiger_with_blur.png", new PngOptions());
            }
        }
    }
}

You may find other image effect cases and examples here