次の方法で共有


ImageThemingUtilities.ModifyBitmap Method

Definition

Modifies a BitmapSource using a callback which recieves the raw pixel data from the BitmapSource, creating a new BitmapSource if changes were made.

public:
 static System::Windows::Media::Imaging::BitmapSource ^ ModifyBitmap(System::Windows::Media::Imaging::BitmapSource ^ source, Microsoft::VisualStudio::PlatformUI::ImageThemingUtilities::ModifyPixelCallback ^ modifier);
public static System.Windows.Media.Imaging.BitmapSource ModifyBitmap (System.Windows.Media.Imaging.BitmapSource source, Microsoft.VisualStudio.PlatformUI.ImageThemingUtilities.ModifyPixelCallback modifier);
static member ModifyBitmap : System.Windows.Media.Imaging.BitmapSource * Microsoft.VisualStudio.PlatformUI.ImageThemingUtilities.ModifyPixelCallback -> System.Windows.Media.Imaging.BitmapSource
Public Function ModifyBitmap (source As BitmapSource, modifier As ImageThemingUtilities.ModifyPixelCallback) As BitmapSource

Parameters

source
BitmapSource

The BitmapSource to modify.

modifier
ImageThemingUtilities.ModifyPixelCallback

The callback which gets passed the pixel data from the bitmap in a Bgra32 format.

Returns

Applies to