Partager via


ImageThemingUtilities.IsOptOutPixelSet Method

Definition

Overloads

IsOptOutPixelSet(Byte*, Int32, Int32, Boolean)
IsOptOutPixelSet(Byte[], Int32, Int32, Boolean)

Determines if the opt-out pixel is set for a bitmap. Cyan is the sentinel color for opting out of icon inversion. If this pixel is set in the image, then icon inversion is disabled, and the image should not be inverted.

IsOptOutPixelSet(Byte*, Int32, Int32, Boolean)

public:
 static bool IsOptOutPixelSet(System::Byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
 static bool IsOptOutPixelSet(byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
public static bool IsOptOutPixelSet (byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
static member IsOptOutPixelSet : nativeptr<byte> * int * int * bool -> bool

Parameters

pPixelBytes
Byte*
width
Int32
height
Int32
isTopDownBitmap
Boolean

Returns

Applies to

IsOptOutPixelSet(Byte[], Int32, Int32, Boolean)

Determines if the opt-out pixel is set for a bitmap. Cyan is the sentinel color for opting out of icon inversion. If this pixel is set in the image, then icon inversion is disabled, and the image should not be inverted.

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

Parameters

pixels
Byte[]

The pixels of the bitmap

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

Returns

True if the opt-out pixel is set, false if it is not set

Applies to