GrayscaleFilter Members

Include Protected Members
Include Inherited Members

The GrayscaleFilter type exposes the following members.

Constructors

  Name Description
Public method GrayscaleFilter()
Creates and initializes a new GrayscaleFilter with the default values.
Public method GrayscaleFilter(Double, Double, Double, Double)
Creates and initializes a new GrayscaleFilter 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].

Methods

  Name Description
Public method Apply
Internal framework method.
Public method Lock
Internal framework method.
Public method PrepareAsync
Internal framework method.

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 RedWeight
The red weight in the mixing equation. Range [-255.0, 255.0]. Default value is 0.299.

See Also

GrayscaleFilter Class

Lumia.Imaging.Adjustments Namespace