IVsUIShell5.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.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

void ThemeDIBits(
	uint dwBitmapLength,
	byte[] pBitmap,
	uint dwPixelWidth,
	uint dwPixelHeight,
	bool fIsTopDownBitmap,
	uint crBackground
)

Parameters

dwBitmapLength
Type: System.UInt32

The bitmap length.

pBitmap
Type: System.Byte[]

The array of bytes that makes up the bitmap.

dwPixelWidth
Type: System.UInt32

The pixel width.

dwPixelHeight
Type: System.UInt32

The pixel height.

fIsTopDownBitmap
Type: System.Boolean

True if this is a top-down bitmap, otherwise false.

crBackground
Type: System.UInt32

The background color.

Return to top
Show: