ImageThemingUtilities::GrayscaleDIBits Method (array<Byte>^, Int32, Color)
Visual Studio 2015
Transforms a BGRA32 device-independent bitmap to grayscale.
Assembly: Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)
public: static void GrayscaleDIBits( array<unsigned char>^ pixels, int pixelLength, Color biasColor )
Parameters
- pixels
-
Type:
array<System::Byte>^
The raw pixels from the DIB.
- pixelLength
-
Type:
System::Int32
The length of the pixels array.
- biasColor
-
Type:
System.Windows.Media::Color
The bias color used to weight the grayscale image.
Show: