ImageThemingUtilities.GetThemedBitmap ImageThemingUtilities.GetThemedBitmap ImageThemingUtilities.GetThemedBitmap ImageThemingUtilities.GetThemedBitmap Method

Definition

Overloads

GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color)

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

GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32)

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

GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean)
GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean)

GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color) GetThemedBitmap(Bitmap, Color)

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

public:
 static System::Drawing::Bitmap ^ GetThemedBitmap(System::Drawing::Bitmap ^ source, System::Drawing::Color backgroundColor);
public static System.Drawing.Bitmap GetThemedBitmap (System.Drawing.Bitmap source, System.Drawing.Color backgroundColor);
static member GetThemedBitmap : System.Drawing.Bitmap * System.Drawing.Color -> System.Drawing.Bitmap
Public Function GetThemedBitmap (source As Bitmap, backgroundColor As Color) As Bitmap

Parameters

source
Bitmap Bitmap Bitmap Bitmap

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

backgroundColor
Color Color Color Color

The background color(System.Drawing.Color)

Returns

The bitmap.

GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32) GetThemedBitmap(Bitmap, UInt32)

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

public:
 static System::Drawing::Bitmap ^ GetThemedBitmap(System::Drawing::Bitmap ^ source, System::UInt32 backgroundColor);
public static System.Drawing.Bitmap GetThemedBitmap (System.Drawing.Bitmap source, uint backgroundColor);
static member GetThemedBitmap : System.Drawing.Bitmap * uint32 -> System.Drawing.Bitmap
Public Function GetThemedBitmap (source As Bitmap, backgroundColor As UInteger) As Bitmap

Parameters

source
Bitmap Bitmap Bitmap Bitmap

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

backgroundColor
UInt32 UInt32 UInt32 UInt32

The background color in native ABGR format.

Returns

The bitmap.

GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean) GetThemedBitmap(Bitmap, Color, Boolean)

public:
 static System::Drawing::Bitmap ^ GetThemedBitmap(System::Drawing::Bitmap ^ source, System::Drawing::Color backgroundColor, bool isHighContrast);
public static System.Drawing.Bitmap GetThemedBitmap (System.Drawing.Bitmap source, System.Drawing.Color backgroundColor, bool isHighContrast);
static member GetThemedBitmap : System.Drawing.Bitmap * System.Drawing.Color * bool -> System.Drawing.Bitmap
Public Function GetThemedBitmap (source As Bitmap, backgroundColor As Color, isHighContrast As Boolean) As Bitmap

Parameters

backgroundColor
Color Color Color Color
isHighContrast
Boolean Boolean Boolean Boolean

Returns

GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean) GetThemedBitmap(Bitmap, UInt32, Boolean)

public:
 static System::Drawing::Bitmap ^ GetThemedBitmap(System::Drawing::Bitmap ^ source, System::UInt32 backgroundColor, bool isHighContrast);
public static System.Drawing.Bitmap GetThemedBitmap (System.Drawing.Bitmap source, uint backgroundColor, bool isHighContrast);
static member GetThemedBitmap : System.Drawing.Bitmap * uint32 * bool -> System.Drawing.Bitmap
Public Function GetThemedBitmap (source As Bitmap, backgroundColor As UInteger, isHighContrast As Boolean) As Bitmap

Parameters

backgroundColor
UInt32 UInt32 UInt32 UInt32
isHighContrast
Boolean Boolean Boolean Boolean

Returns

Applies to