Devesprit.ImageProcessor & Devesprit.ImageServer
Pixelate

Description:

Pixelate an image with the given size.

Method Declaration
Copy Code
public ImageFactory Pixelate(int pixelSize, Rectangle? rectangle = null)

Parameters:

pixelSize The size of the pixels to create.
rectangle The Nullable<System.Drawing.Rectangle> representing the area in which to Pixelate the image. If not set, the whole image is pixelated.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Pixelate(5);

Original

 

Result