GrayscaleFilter Constructor (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].

Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.Adjustments.GrayscaleFilter = function(redWeight, greenWeight, blueWeight, constant);

Parameters

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].

Lumia Imaging SDK

Supported in: 2.0
Show: