ImageThemingUtilities.ModifyBitmap 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.
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.
The callback which gets passed the pixel data from the bitmap in a Bgra32 format.