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: Int32The length of the pixels array.
biasColor
Type: ColorThe bias color used to weight the grayscale image.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.