ImageThemingUtilities::GrayscaleDIBits Method (array<Byte>^, Int32, Color)

 

Transforms a BGRA32 device-independent bitmap to grayscale.

Namespace:   Microsoft.VisualStudio.PlatformUI
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.

Return to top
Show: