다음을 통해 공유


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

Definition

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.

public:
 void ThemeDIBits(System::UInt32 dwBitmapLength, [Runtime::InteropServices::Out] System::Byte % pBitmap, System::UInt32 dwPixelWidth, System::UInt32 dwPixelHeight, bool fIsTopDownBitmap, System::UInt32 crBackground);
void ThemeDIBits(unsigned int dwBitmapLength, [Runtime::InteropServices::Out] byte & pBitmap, unsigned int dwPixelWidth, unsigned int dwPixelHeight, bool fIsTopDownBitmap, unsigned int crBackground);
public void ThemeDIBits (uint dwBitmapLength, out byte pBitmap, uint dwPixelWidth, uint dwPixelHeight, bool fIsTopDownBitmap, uint crBackground);
abstract member ThemeDIBits : uint32 * byte * uint32 * uint32 * bool * uint32 -> unit
Public Sub ThemeDIBits (dwBitmapLength As UInteger, ByRef pBitmap As Byte, dwPixelWidth As UInteger, dwPixelHeight As UInteger, fIsTopDownBitmap As Boolean, crBackground As UInteger)

Parameters

dwBitmapLength
UInt32

The bitmap length.

pBitmap
Byte

The bitmap

dwPixelWidth
UInt32

The width in pixels.

dwPixelHeight
UInt32

The height in pixels.

fIsTopDownBitmap
Boolean

The bitmap.

crBackground
UInt32

The background color.

Applies to