次の方法で共有


IVsUIShell5.ThemeDIBits 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, cli::array <System::Byte> ^ pBitmap, System::UInt32 dwPixelWidth, System::UInt32 dwPixelHeight, bool fIsTopDownBitmap, System::UInt32 crBackground);
public:
 void ThemeDIBits(unsigned int dwBitmapLength, Platform::Array <byte> ^ pBitmap, unsigned int dwPixelWidth, unsigned int dwPixelHeight, bool fIsTopDownBitmap, unsigned int crBackground);
void ThemeDIBits(unsigned int dwBitmapLength, std::Array <byte> const & pBitmap, unsigned int dwPixelWidth, unsigned int dwPixelHeight, bool fIsTopDownBitmap, unsigned int crBackground);
public void ThemeDIBits (uint dwBitmapLength, 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, pBitmap As Byte(), dwPixelWidth As UInteger, dwPixelHeight As UInteger, fIsTopDownBitmap As Boolean, crBackground As UInteger)

Parameters

dwBitmapLength
UInt32

The bitmap length.

pBitmap
Byte[]

The array of bytes that makes up the bitmap.

dwPixelWidth
UInt32

The pixel width.

dwPixelHeight
UInt32

The pixel height.

fIsTopDownBitmap
Boolean

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

crBackground
UInt32

The background color.

Applies to