Partager via


IVsImageService2.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.This method is a replacement for IVsUIShell5.ThemeDIBits.

public:
 bool ThemeDIBits(int pixelCount, cli::array <System::Byte> ^ pixels, int width, int height, bool isTopDownBitmap, System::UInt32 backgroundColor);
public:
 bool ThemeDIBits(int pixelCount, Platform::Array <byte> ^ pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundColor);
bool ThemeDIBits(int pixelCount, std::Array <byte> const & pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundColor);
public bool ThemeDIBits (int pixelCount, byte[] pixels, int width, int height, bool isTopDownBitmap, uint backgroundColor);
abstract member ThemeDIBits : int * byte[] * int * int * bool * uint32 -> bool
Public Function ThemeDIBits (pixelCount As Integer, pixels As Byte(), width As Integer, height As Integer, isTopDownBitmap As Boolean, backgroundColor As UInteger) As Boolean

Parameters

pixelCount
Int32

The number of pixels in the pixel array.

pixels
Byte[]

The pixel array.

width
Int32

The width of the image, in pixels.

height
Int32

The height of the image, in pixels.

isTopDownBitmap
Boolean

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

backgroundColor
UInt32

The background color.

Returns

True if the pixels were themed, otherwise false.

Applies to