Condividi tramite


ImageThemingUtilities.GetThemedBitmap Method (Bitmap, UInt32)

Creates a new Bitmap, based on the input one, but the new one blends in with the target background.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function GetThemedBitmap ( _
    source As Bitmap, _
    backgroundColor As UInteger _
) As Bitmap
public static Bitmap GetThemedBitmap(
    Bitmap source,
    uint backgroundColor
)
public:
static Bitmap^ GetThemedBitmap(
    Bitmap^ source, 
    unsigned int backgroundColor
)
static member GetThemedBitmap : 
        source:Bitmap * 
        backgroundColor:uint32 -> Bitmap
public static function GetThemedBitmap(
    source : Bitmap, 
    backgroundColor : uint
) : Bitmap

Parameters

  • source
    Type: Bitmap

    The original bitmap, this bitmap is not changed or disposed in this function.

  • backgroundColor
    Type: UInt32

    The background color in native ABGR format.

Return Value

Type: Bitmap
The bitmap.

.NET Framework Security

See Also

Reference

ImageThemingUtilities Class

GetThemedBitmap Overload

Microsoft.VisualStudio.PlatformUI Namespace