ImageThemingUtilities.ThemeDIBits Method

Definition

Overloads

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32, Boolean)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32, Boolean, Boolean)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

public:
 static bool ThemeDIBits(int pixelCount, cli::array <System::Byte> ^ pixels, int width, int height, bool isTopDownBitmap, System::UInt32 backgroundRgba);
public:
 static bool ThemeDIBits(int pixelCount, Platform::Array <byte> ^ pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundRgba);
 static bool ThemeDIBits(int pixelCount, std::Array <byte> const & pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundRgba);
public static bool ThemeDIBits (int pixelCount, byte[] pixels, int width, int height, bool isTopDownBitmap, uint backgroundRgba);
static member ThemeDIBits : int * byte[] * int * int * bool * uint32 -> bool
Public Function ThemeDIBits (pixelCount As Integer, pixels As Byte(), width As Integer, height As Integer, isTopDownBitmap As Boolean, backgroundRgba As UInteger) As Boolean

Parameters

pixelCount
Int32

The number of pixels to theme

pixels
Byte[]

The pixels to theme

width
Int32

The width of the bitmap

height
Int32

The height of the bitmap

isTopDownBitmap
Boolean

Indicates whether the bitmap's pixels have a top-down arrangement

backgroundRgba
UInt32

The background color to theme to

Returns

True if the image bits were themed, and false if the image theming is disabled or if the image was not themed due to an opt-out pixel.

Applies to

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32, Boolean)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

public:
 static bool ThemeDIBits(int pixelCount, cli::array <System::Byte> ^ pixels, int width, int height, bool isTopDownBitmap, System::UInt32 backgroundRgba, bool isHighContrast);
public:
 static bool ThemeDIBits(int pixelCount, Platform::Array <byte> ^ pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundRgba, bool isHighContrast);
 static bool ThemeDIBits(int pixelCount, std::Array <byte> const & pixels, int width, int height, bool isTopDownBitmap, unsigned int backgroundRgba, bool isHighContrast);
public static bool ThemeDIBits (int pixelCount, byte[] pixels, int width, int height, bool isTopDownBitmap, uint backgroundRgba, bool isHighContrast);
static member ThemeDIBits : int * byte[] * int * int * bool * uint32 * bool -> bool
Public Function ThemeDIBits (pixelCount As Integer, pixels As Byte(), width As Integer, height As Integer, isTopDownBitmap As Boolean, backgroundRgba As UInteger, isHighContrast As Boolean) As Boolean

Parameters

pixelCount
Int32

The number of pixels to theme

pixels
Byte[]

The pixels to theme

width
Int32

The width of the bitmap

height
Int32

The height of the bitmap

isTopDownBitmap
Boolean

Indicates whether the bitmap's pixels have a top-down arrangement

backgroundRgba
UInt32

The background color to theme to

isHighContrast
Boolean

If the bitmap should be themed for high contrast

Returns

True if the image bits were themed, and false if the image theming is disabled or if the image was not themed due to an opt-out pixel.

Applies to

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32, Boolean, Boolean)

Transforms the given RGBA32 device-independent bitmap bits to try to match the fixed halo luminosity to the background luminosity (see TransformLuminosity).

public:
 static bool ThemeDIBits(int pixelCount, cli::array <System::Byte> ^ pixels, int width, int height, bool isTopDownBitmap, System::UInt32 backgroundRgba, bool isHighContrast, bool enhanceContrastIfNecessary);
public static bool ThemeDIBits (int pixelCount, byte[] pixels, int width, int height, bool isTopDownBitmap, uint backgroundRgba, bool isHighContrast, bool enhanceContrastIfNecessary);
static member ThemeDIBits : int * byte[] * int * int * bool * uint32 * bool * bool -> bool
Public Function ThemeDIBits (pixelCount As Integer, pixels As Byte(), width As Integer, height As Integer, isTopDownBitmap As Boolean, backgroundRgba As UInteger, isHighContrast As Boolean, enhanceContrastIfNecessary As Boolean) As Boolean

Parameters

pixelCount
Int32

The number of pixels to theme

pixels
Byte[]

The pixels to theme

width
Int32

The width of the bitmap

height
Int32

The height of the bitmap

isTopDownBitmap
Boolean

Indicates whether the bitmap's pixels have a top-down arrangement

backgroundRgba
UInt32

The background color to theme to

isHighContrast
Boolean

If the bitmap should be themed for high contrast

enhanceContrastIfNecessary
Boolean

Whether to render images with enhanced contrast when necessary to meet minimum contrast requirements

Returns

True if the image bits were themed, and false if the image theming is disabled or if the image was not themed due to an opt-out pixel.

Applies to