C# Class Softbuild.Media.Effects.PixelateEffect

Inheritance: IEffect
显示文件 Open project: CH3COOH/Softbuild.Media

Private Properties

Property Type Description
Clamp double
GetFillPixel byte[]
GetFillPixelLight byte[]
GetPixel byte[]
SetPixel void

Public Methods

Method Description
Effect ( int width, int height, byte source ) : byte[]
PixelateEffect ( Rect blockRect, int blockSize ) : Softbuild.Media.Effects
PixelateEffect ( int x, int y, int width, int height, int blockSize ) : Softbuild.Media.Effects

Private Methods

Method Description
Clamp ( double value, double max, double min ) : double
GetFillPixel ( int MinX, int MaxX, int MinY, int MaxY, byte source, int width, int height ) : byte[]
GetFillPixelLight ( int MinX, int MaxX, int MinY, int MaxY, byte source, int width, int height ) : byte[]
GetPixel ( int width, int height, byte source, int x, int y ) : byte[]
SetPixel ( int width, int height, byte &source, int x, int y, byte pixel ) : void

Method Details

Effect() public method

public Effect ( int width, int height, byte source ) : byte[]
width int
height int
source byte
return byte[]

PixelateEffect() public method

public PixelateEffect ( Rect blockRect, int blockSize ) : Softbuild.Media.Effects
blockRect Rect
blockSize int
return Softbuild.Media.Effects

PixelateEffect() public method

public PixelateEffect ( int x, int y, int width, int height, int blockSize ) : Softbuild.Media.Effects
x int
y int
width int
height int
blockSize int
return Softbuild.Media.Effects