Devesprit.ImageProcessor & Devesprit.ImageServer
Halftone

Description:

The halftone processor applies a classical CMYK halftone to the given image.

Method Declaration
Copy Code
public ImageFactory Halftone(int distance = 5, HalftoneMode mode = HalftoneMode.Normal)

Parameters:

distance The distance.
mode

Whether to trace over the current image and add borders to add a comic book effect.

The value of this parameter can be HalftoneMode.Normal or HalftoneMode.Comic

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Halftone(5, HalftoneMode.Comic);

Original

 

Result (mode=HalftoneMode.Normal)

 

Result (mode=HalftoneMode.Comic)