Partager via


ImageThemingUtilities.GetThemedBitmap Method (Bitmap, Color)

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 Color _
) As Bitmap
public static Bitmap GetThemedBitmap(
    Bitmap source,
    Color backgroundColor
)
public:
static Bitmap^ GetThemedBitmap(
    Bitmap^ source, 
    Color backgroundColor
)
static member GetThemedBitmap : 
        source:Bitmap * 
        backgroundColor:Color -> Bitmap
public static function GetThemedBitmap(
    source : Bitmap, 
    backgroundColor : Color
) : Bitmap

Parameters

  • source
    Type: Bitmap

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

  • backgroundColor
    Type: Color

    The background color(System.Drawing.Color)

Return Value

Type: Bitmap
The bitmap.

.NET Framework Security

See Also

Reference

ImageThemingUtilities Class

GetThemedBitmap Overload

Microsoft.VisualStudio.PlatformUI Namespace