ImageThemingUtilities.GrayscaleDIBits(Byte[], Int32, Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transforms a BGRA32 device-independent bitmap to grayscale.
public:
static void GrayscaleDIBits(cli::array <System::Byte> ^ pixels, int pixelLength, System::Windows::Media::Color biasColor);
public static void GrayscaleDIBits (byte[] pixels, int pixelLength, System.Windows.Media.Color biasColor);
static member GrayscaleDIBits : byte[] * int * System.Windows.Media.Color -> unit
Public Sub GrayscaleDIBits (pixels As Byte(), pixelLength As Integer, biasColor As Color)
Parameters
- pixels
- Byte[]
The raw pixels from the DIB.
- pixelLength
- Int32
The length of the pixels array.
- biasColor
- Color
The bias color used to weight the grayscale image.