ImageConverter.BitmapFromBitmapSource(BitmapSource) 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.
Converts a BitmapSource to System.Drawing.Bitmap
public:
static System::Drawing::Bitmap ^ BitmapFromBitmapSource(System::Windows::Media::Imaging::BitmapSource ^ bitmapSource);
public static System.Drawing.Bitmap BitmapFromBitmapSource (System.Windows.Media.Imaging.BitmapSource bitmapSource);
static member BitmapFromBitmapSource : System.Windows.Media.Imaging.BitmapSource -> System.Drawing.Bitmap
Public Shared Function BitmapFromBitmapSource (bitmapSource As BitmapSource) As Bitmap
Parameters
- bitmapSource
- BitmapSource
Image to convert
Returns
Converted bitmap