GrayscaleEffect Constructor
| Name | Description | |
|---|---|---|
|
GrayscaleEffect() |
Creates and initializes a new GrayscaleEffect with the default values.
|
|
GrayscaleEffect(IImageProvider) |
Creates and initializes a new Grayscale effect that uses the provided image source.
|
|
GrayscaleEffect(Double, Double, Double, Double) |
Creates and initializes a new GrayscaleEffect with 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].
|
|
GrayscaleEffect(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].
|
Show: