Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)
Syntax
'Declaration
Sub ThemeDIBits ( _
    dwBitmapLength As UInteger, _
    <OutAttribute> ByRef pBitmap As Byte, _
    dwPixelWidth As UInteger, _
    dwPixelHeight As UInteger, _
    fIsTopDownBitmap As Boolean, _
    crBackground As UInteger _
)
void ThemeDIBits(
    uint dwBitmapLength,
    out byte pBitmap,
    uint dwPixelWidth,
    uint dwPixelHeight,
    bool fIsTopDownBitmap,
    uint crBackground
)
void ThemeDIBits(
    [InAttribute] unsigned int dwBitmapLength, 
    [OutAttribute] unsigned char% pBitmap, 
    [InAttribute] unsigned int dwPixelWidth, 
    [InAttribute] unsigned int dwPixelHeight, 
    [InAttribute] bool fIsTopDownBitmap, 
    [InAttribute] unsigned int crBackground
)
abstract ThemeDIBits : 
        dwBitmapLength:uint32 * 
        pBitmap:byte byref * 
        dwPixelWidth:uint32 * 
        dwPixelHeight:uint32 * 
        fIsTopDownBitmap:bool * 
        crBackground:uint32 -> unit
function ThemeDIBits(
    dwBitmapLength : uint, 
    pBitmap : byte, 
    dwPixelWidth : uint, 
    dwPixelHeight : uint, 
    fIsTopDownBitmap : boolean, 
    crBackground : uint
)
Parameters
- dwBitmapLength 
 Type: UInt32- The bitmap length. 
- pBitmap 
 Type: Byte%- The bitmap 
- dwPixelWidth 
 Type: UInt32- The width in pixels. 
- dwPixelHeight 
 Type: UInt32- The height in pixels. 
- fIsTopDownBitmap 
 Type: Boolean- The bitmap. 
- crBackground 
 Type: UInt32- The background color. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.