Devesprit.ImageProcessor & Devesprit.ImageServer
Filter

Description:

Applies a filter to the current image. Use the MatrixFilters class to assign the correct filter.

Method Declaration
Copy Code
public ImageFactory Filter(IMatrixFilter matrixFilter)

Parameters:

matrixFilter The IMatrixFilter to add to the image. Found in the Devesprit.ImageProcessor.Imaging.Filters.Photo.MatrixFilters class.

Available filters are:

  • BlackWhite
  • Comic
  • Gotham
  • GreyScale
  • HiSatch
  • Invert
  • Lomograph
  • LoSatch
  • Polaroid
  • Sepia

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").
Filter(Devesprit.ImageProcessor.Imaging.Filters.Photo.MatrixFilters.BlackWhite);

Original

 

Result (BlackWhite)

 

Result (Comic)

 

Result (Gotham)

 

Result (GreyScale)

 

Result (HiSatch)

 

Result (Invert)

 

Result (Lomograph)

 

Result (LoSatch)

 

Result (Polaroid)

 

Result (Sepia)