IVsUIShell6::ThemeDIBits Method (UInt32, Byte, UInt32, UInt32, Boolean, UInt32)

 

Applies theming to BGRA32 device-independent bitmap bits. The luminosity of the image is transformed so that the constant "halo" luminosity blends in with the background. This has the effect of eliminating the halo visually. The "halo" luminosity is an immutable constant, and is not calculated from the input image. Images which contain cyan (#00FFFF) in their top-right pixel are not inverted. Instead, the top-right pixel is cleared (RGBA are all set to 0) and S_OK is returned without otherwise modifying the image.

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

void ThemeDIBits(
	unsigned int dwBitmapLength,
	[OutAttribute] unsigned char% pBitmap,
	unsigned int dwPixelWidth,
	unsigned int dwPixelHeight,
	bool fIsTopDownBitmap,
	unsigned int crBackground
)

Parameters

dwBitmapLength
Type: System::UInt32

The bitmap length.

pBitmap
Type: System::Byte

The bitmap

dwPixelWidth
Type: System::UInt32

The width in pixels.

dwPixelHeight
Type: System::UInt32

The height in pixels.

fIsTopDownBitmap
Type: System::Boolean

The bitmap.

crBackground
Type: System::UInt32

The background color.

Return to top
Show: