Share via


ImageConverter.BitmapSourceFromBitmap(Bitmap) Method

Definition

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

Applies to