ImageGear .NET - Updated
BitmapSourceFromBitmap Method




ImageGear24.Wpf Assembly > ImageGear.WPF.BitmapSourceConversion Namespace > ImGearBitmapSourceConverter Class : BitmapSourceFromBitmap Method
System.Drawing.Bitmap object to be converted.
Converts System.Drawing.Bitmap to System.Windows.Media.Imaging.BitmapSource.
Syntax
'Declaration
 
Public Function BitmapSourceFromBitmap( _
   ByVal bitmap As Bitmap _
) As BitmapSource
'Usage
 
Dim instance As ImGearBitmapSourceConverter
Dim bitmap As Bitmap
Dim value As BitmapSource
 
value = instance.BitmapSourceFromBitmap(bitmap)
public BitmapSource BitmapSourceFromBitmap( 
   Bitmap bitmap
)
public: BitmapSource* BitmapSourceFromBitmap( 
   Bitmap* bitmap
) 
public:
BitmapSource^ BitmapSourceFromBitmap( 
   Bitmap^ bitmap
) 

Parameters

bitmap
System.Drawing.Bitmap object to be converted.

Return Value

System.Windows.Media.Imaging.BitmapSource object.
See Also

Reference

ImGearBitmapSourceConverter Class
ImGearBitmapSourceConverter Members