GrayscaleEffect Constructor (IImageProvider, Double, Double, Double, Double)
Creates and initializes a new GrayscaleEffect with provided image source and specified weights.
The gray shade is calculated by multiplying each color component of every pixel with the matching Weight and adding a constant:
resultShade = redValue * redWeight + greenValue * greenWeight + blueValue * blueWeight + constant.
The resulting shade is clamped to the range [0,1].
Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255
public: GrayscaleEffect( [InAttribute] IImageProvider^ imageSource, [InAttribute] double redWeight, [InAttribute] double greenWeight, [InAttribute] double blueWeight, [InAttribute] double constant )
Parameters
- imageSource
- Type: Lumia.Imaging::IImageProvider
An image source for the effect.
- redWeight
- Type: System::Double
The red component of the equation for mixing weights. Range [-255.0, 255.0].
- greenWeight
- Type: System::Double
The green component of the equation for mixing weights. Range [-255.0, 255.0].
- blueWeight
- Type: System::Double
The blue component of the equation for mixing weights. Range [-255.0, 255.0].
- constant
- Type: System::Double
The constant component of the equation for mixing weights. Range [-255.0, 255.0].
Show: