Udostępnij za pośrednictwem


ImageThemingUtilities.GetThemedBitmap Method

Definition

Overloads

GetThemedBitmap(Bitmap, UInt32, Boolean)

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

GetThemedBitmap(Bitmap, Color, Boolean)

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

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)

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

GetThemedBitmap(Bitmap, UInt32, Boolean)

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, 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

source
Bitmap

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

backgroundColor
UInt32

The background color in native ABGR format

isHighContrast
Boolean

If the bitmap should be themed for high contrast

Returns

Applies to

GetThemedBitmap(Bitmap, Color, Boolean)

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, 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

source
Bitmap

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

backgroundColor
Color

The background color(System.Drawing.Color)

isHighContrast
Boolean

If the bitmap should be themed for high contrast

Returns

Applies to

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

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

backgroundColor
Color

The background color(System.Drawing.Color)

Returns

The bitmap.

Applies to

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

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

backgroundColor
UInt32

The background color in native ABGR format

Returns

The bitmap.

Applies to