C# Class netfx.effects

显示文件 Open project: asadm/NETFx

Public Methods

Method Description
adjust ( BitmapW image, float pr, float pg, float pb, float pa ) : BitmapW

#### Adjust [-255,255 for each channel]

alpha ( BitmapW image, float p ) : BitmapW

#### Alpha [-100, 100]

blur ( BitmapW image, string p ) : BitmapW

#### Blur ['simple', 'gaussian']

brighten ( BitmapW image, float p ) : BitmapW

#### Brighten [-100, 100]

contrast ( BitmapW image, float p ) : BitmapW

#### Constrast [-100, 100]

expose ( BitmapW image, float p ) : BitmapW

#### Expose [-100, 100]

fill ( BitmapW image, int r, int g, int b ) : BitmapW

#### Fill [No Range]

gamma ( BitmapW image, float p ) : BitmapW

#### Gamma [-100, 100]

invert ( BitmapW image ) : BitmapW

#### Invert

noise ( BitmapW image, int p ) : BitmapW

#### Noise [0 - 100]

posterize ( BitmapW image, float p ) : BitmapW

#### Posterize [1, 255]

saturate ( BitmapW image, float p ) : BitmapW

#### Saturate [-100, 100]

sepia ( BitmapW image ) : BitmapW

#### Sepia

sharpen ( BitmapW image ) : BitmapW

#### Sharpen

subtract ( BitmapW image ) : BitmapW

#### Subtract [No Range]

vignette ( BitmapW image, int r, int g, int b ) : BitmapW

#### Vignette (red,green,blue) of the vignette effect to apply

Private Methods

Method Description
approx_distance ( int dx, int dy ) : int
contrastc ( float f, float c ) : float
convolve ( BitmapW image, float kernel, int kw, int kh ) : BitmapW
curves ( BitmapW image, Point s, Point c1, Point c2, Point e ) : BitmapW
dist ( int x1, int y1, int x2, int y2 ) : int

Method Details

adjust() public method

#### Adjust [-255,255 for each channel]
public adjust ( BitmapW image, float pr, float pg, float pb, float pa ) : BitmapW
image BitmapW
pr float
pg float
pb float
pa float
return BitmapW

alpha() public method

#### Alpha [-100, 100]
public alpha ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

blur() public method

#### Blur ['simple', 'gaussian']
public blur ( BitmapW image, string p ) : BitmapW
image BitmapW
p string
return BitmapW

brighten() public method

#### Brighten [-100, 100]
public brighten ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

contrast() public method

#### Constrast [-100, 100]
public contrast ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

expose() public method

#### Expose [-100, 100]
public expose ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

fill() public method

#### Fill [No Range]
public fill ( BitmapW image, int r, int g, int b ) : BitmapW
image BitmapW
r int
g int
b int
return BitmapW

gamma() public method

#### Gamma [-100, 100]
public gamma ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

invert() public method

#### Invert
public invert ( BitmapW image ) : BitmapW
image BitmapW
return BitmapW

noise() public method

#### Noise [0 - 100]
public noise ( BitmapW image, int p ) : BitmapW
image BitmapW
p int
return BitmapW

posterize() public method

#### Posterize [1, 255]
public posterize ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

saturate() public method

#### Saturate [-100, 100]
public saturate ( BitmapW image, float p ) : BitmapW
image BitmapW
p float
return BitmapW

sepia() public method

#### Sepia
public sepia ( BitmapW image ) : BitmapW
image BitmapW
return BitmapW

sharpen() public method

#### Sharpen
public sharpen ( BitmapW image ) : BitmapW
image BitmapW
return BitmapW

subtract() public method

#### Subtract [No Range]
public subtract ( BitmapW image ) : BitmapW
image BitmapW
return BitmapW

vignette() public method

#### Vignette (red,green,blue) of the vignette effect to apply
public vignette ( BitmapW image, int r, int g, int b ) : BitmapW
image BitmapW
r int
g int
b int
return BitmapW