C# Class Pinta.ImageManipulation.Effects.PixelateEffect

Inheritance: BaseEffect
Afficher le fichier Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Méthodes publiques

Méthode Description
PixelateEffect ( int cellSize = 2 ) : System

Creates a new effect that will pixelate an image.

Méthodes protégées

Méthode Description
RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void

Private Methods

Méthode 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 méthode

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.
Résultat System

RenderLine() protected méthode

protected RenderLine ( ISurface src, ISurface dest, Rectangle rect ) : void
src ISurface
dest ISurface
rect Rectangle
Résultat void