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: BitmapThe original bitmap, this bitmap is not changed or disposed in this function.
backgroundColor
Type: UInt32The background color in native ABGR format.
Return Value
Type: Bitmap
The bitmap.
.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.