C# Class Pinta.ImageManipulation.Effects.PixelateEffect

Inheritance: BaseEffect
Mostra file Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Public Methods

Method Description
PixelateEffect ( int cellSize = 2 ) : System

Creates a new effect that will pixelate an image.

Protected Methods

Method Description
RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void

Private Methods

Method Description
ComputeCellColor ( int x, int y, ISurface src, int cellSize, Rectangle srcBounds ) : ColorBgra
GetCellBox ( int x, int y, int cellSize ) : Rectangle

Method Details

PixelateEffect() public method

Creates a new effect that will pixelate an image.
public PixelateEffect ( int cellSize = 2 ) : System
cellSize int Size of the pixelation. Valid range is 0 - 100.
return System

RenderLine() protected method

protected RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void
src ISurface
dest ISurface
rect Rectangle
return void