ImageThemingUtilities.SetOptOutPixel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetOptOutPixel(BitmapSource) |
Adds a marker that will prevent ImageThemingUtilities.ThemeDIBits from theming the image a drawing context. The marker is a pixel in the top-right corner of the image that is set to #FF00FFFF. |
SetOptOutPixel(Byte*, Int32, Int32, Boolean) | |
SetOptOutPixel(Byte[], Int32, Int32, Boolean) |
Sets the opt-out pixel in a bitmap. |
SetOptOutPixel(BitmapSource)
Adds a marker that will prevent ImageThemingUtilities.ThemeDIBits from theming the image a drawing context. The marker is a pixel in the top-right corner of the image that is set to #FF00FFFF.
public:
static System::Windows::Media::Imaging::BitmapSource ^ SetOptOutPixel(System::Windows::Media::Imaging::BitmapSource ^ source);
public static System.Windows.Media.Imaging.BitmapSource SetOptOutPixel (System.Windows.Media.Imaging.BitmapSource source);
static member SetOptOutPixel : System.Windows.Media.Imaging.BitmapSource -> System.Windows.Media.Imaging.BitmapSource
Public Function SetOptOutPixel (source As BitmapSource) As BitmapSource
Parameters
- source
- BitmapSource
The bitmap whose opt-out pixel is to be set
Returns
Applies to
SetOptOutPixel(Byte*, Int32, Int32, Boolean)
public:
static void SetOptOutPixel(System::Byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
static void SetOptOutPixel(byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
public static void SetOptOutPixel (byte* pPixelBytes, int width, int height, bool isTopDownBitmap);
static member SetOptOutPixel : nativeptr<byte> * int * int * bool -> unit
Parameters
- pPixelBytes
- Byte*
- width
- Int32
- height
- Int32
- isTopDownBitmap
- Boolean
Applies to
SetOptOutPixel(Byte[], Int32, Int32, Boolean)
Sets the opt-out pixel in a bitmap.
public:
static void SetOptOutPixel(cli::array <System::Byte> ^ pixels, int width, int height, bool isTopDownBitmap);
public:
static void SetOptOutPixel(Platform::Array <byte> ^ pixels, int width, int height, bool isTopDownBitmap);
static void SetOptOutPixel(std::Array <byte> const & pixels, int width, int height, bool isTopDownBitmap);
public static void SetOptOutPixel (byte[] pixels, int width, int height, bool isTopDownBitmap);
static member SetOptOutPixel : byte[] * int * int * bool -> unit
Public Sub SetOptOutPixel (pixels As Byte(), width As Integer, height As Integer, isTopDownBitmap 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