C# Class Pinta.ImageManipulation.Effects.BrightnessContrastEffect

Inheritance: BaseEffect
Exibir arquivo Open project: PintaProject/Pinta.ImageManipulation Class Usage Examples

Public Methods

Method Description
BrightnessContrastEffect ( int brightness, int contrast ) : System

Creates a new effect that will adjust the brightness and contrast of an image.

Protected Methods

Method Description
Render ( ColorBgra src, ColorBgra dst, int length ) : void

Private Methods

Method Description
Calculate ( ) : void

Method Details

BrightnessContrastEffect() public method

Creates a new effect that will adjust the brightness and contrast of an image.
public BrightnessContrastEffect ( int brightness, int contrast ) : System
brightness int Desired brightness of the image. Valid range is -100 - 100.
contrast int Desired contrast of the image. Valid range is -100 - 100.
return System

Render() protected method

protected Render ( ColorBgra src, ColorBgra dst, int length ) : void
src ColorBgra
dst ColorBgra
length int
return void