Partager via


ImageThemingUtilities.GrayscaleDIBits(Byte[], Int32, Color) Method

Definition

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.

Applies to