GrayscaleEffect Members
Include Protected Members
Include Inherited Members
The GrayscaleEffect type exposes the following members.
Constructors
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].
|
Methods
Name | Description | |
---|---|---|
Clone |
Clone the image provider.
|
|
CreateImageWorker |
Create a worker that can perform image processing.
|
|
GetBitmapAsync | ||
GetInfoAsync |
This method is no longer supported and should not be called. See remarks.
|
|
GetSources | ||
Lock | ||
PreloadAsync |
This method is no longer supported and should not be called. See remarks.
|
|
SetSource |
Set a source by index.
|
Extension Methods
Name | Description | |
---|---|---|
AsAnimationFrame |
Returns an AnimationFrame with the specified IImageProvider as its source and the specified frame duration.
(Defined by ImageProviderExtensions.) |
|
Then<TImageConsumer> |
Enables a fluid way of chaining multiple IImageProvider objects and IImageConsumer objects.
(Defined by ImageProviderExtensions.) |
Properties
Name | Description | |
---|---|---|
BlueWeight |
The blue weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.114.
|
|
Constant |
The constant in the mixing equation. Range [-255.0, 255.0]. Default value is 0.0.
|
|
GreenWeight |
The green weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.587.
|
|
PropertyDescriptions | ||
RedWeight |
The red weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.299.
|
|
Source |
The IImageProvider that will be used as source.
|
|
SourceCount |
The number of sources that can be set.
|
|
SupportedRenderOptions |
Supported rendering options.
|