GrayscaleEffect Members

Include Protected Members
Include Inherited Members

The GrayscaleEffect type exposes the following members.

Constructors

  Name Description
Public method GrayscaleEffect()
Creates and initializes a new GrayscaleEffect with the default values.
Public method GrayscaleEffect(IImageProvider)
Creates and initializes a new Grayscale effect that uses the provided image source.
Public method 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].
Public method 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
Public method Clone
Clone the image provider.
Public method CreateImageWorker
Create a worker that can perform image processing.
Public method GetBitmapAsync
Public method GetInfoAsync
This method is no longer supported and should not be called. See remarks.
Public method GetSources
Public method Lock
Public method PreloadAsync
This method is no longer supported and should not be called. See remarks.
Public method SetSource
Set a source by index.

Extension Methods

  Name Description
Public Extension Method AsAnimationFrame
Returns an AnimationFrame with the specified IImageProvider as its source and the specified frame duration.
(Defined by ImageProviderExtensions.)
Public Extension Method Then<TImageConsumer>
Enables a fluid way of chaining multiple IImageProvider objects and IImageConsumer objects.
(Defined by ImageProviderExtensions.)

Properties

  Name Description
Public property BlueWeight
The blue weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.114.
Public property Constant
The constant in the mixing equation. Range [-255.0, 255.0]. Default value is 0.0.
Public property GreenWeight
The green weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.587.
Public property PropertyDescriptions
Public property RedWeight
The red weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.299.
Public property Source
The IImageProvider that will be used as source.
Public property SourceCount
The number of sources that can be set.
Public property SupportedRenderOptions
Supported rendering options.

See Also

GrayscaleEffect Class

Lumia.Imaging.Adjustments Namespace