IVsImageService2::ThemeDIBits Method (Int32, array<Byte>^, Int32, Int32, 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.
This method is a replacement for IVsUIShell5.ThemeDIBits.
Assembly: Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime (in Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime.dll)
bool ThemeDIBits( int pixelCount, array<unsigned char>^ pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundColor )
Parameters
- pixelCount
-
Type:
System::Int32
The number of pixels in the pixel array.
- pixels
-
Type:
array<System::Byte>^
The pixel array.
- width
-
Type:
System::Int32
The width of the image, in pixels.
- height
-
Type:
System::Int32
The height of the image, in pixels.
- isTopDownBitmap
-
Type:
System::Boolean
True if the bitmap is a top-down bitmap, otherwise false.
- backgroundColor
-
Type:
System::UInt32
The background color.