Share via


ImageThemingUtilities.GrayscaleDIBits Method

Transforms a BGRA32 device-independent bitmap to grayscale.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Sub GrayscaleDIBits ( _
    pixels As Byte(), _
    pixelLength As Integer, _
    biasColor As Color _
)
public static void GrayscaleDIBits(
    byte[] pixels,
    int pixelLength,
    Color biasColor
)
public:
static void GrayscaleDIBits(
    array<unsigned char>^ pixels, 
    int pixelLength, 
    Color biasColor
)
static member GrayscaleDIBits : 
        pixels:byte[] * 
        pixelLength:int * 
        biasColor:Color -> unit
public static function GrayscaleDIBits(
    pixels : byte[], 
    pixelLength : int, 
    biasColor : Color
)

Parameters

  • pixels
    Type: array<Byte[]

    The raw pixels from the DIB.

  • pixelLength
    Type: Int32

    The length of the pixels array.

  • biasColor
    Type: Color

    The bias color used to weight the grayscale image.

.NET Framework Security

See Also

Reference

ImageThemingUtilities Class

Microsoft.VisualStudio.PlatformUI Namespace