ImageConverter.BitmapSourceFromBitmap(Bitmap) 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 Bitmap into a BitmapSource
public:
static System::Windows::Media::Imaging::BitmapSource ^ BitmapSourceFromBitmap(System::Drawing::Bitmap ^ bitmap);
public static System.Windows.Media.Imaging.BitmapSource BitmapSourceFromBitmap (System.Drawing.Bitmap bitmap);
static member BitmapSourceFromBitmap : System.Drawing.Bitmap -> System.Windows.Media.Imaging.BitmapSource
Public Shared Function BitmapSourceFromBitmap (bitmap As Bitmap) As BitmapSource
Parameters
- bitmap
- Bitmap
Bitmap to convert
Returns
BitmapSource for the given bitmap