ImageConversionHelper.GetBitmapSource Method (Image)
Converts an Image into a BitmapSource.
Namespace: Microsoft.WindowsServerSolutions.Common
Assembly: AdminCommon (in AdminCommon.dll)
Syntax
public static BitmapSource GetBitmapSource(
Image bitmapImage
)
public:
static BitmapSource^ GetBitmapSource(
Image^ bitmapImage
)
Public Shared Function GetBitmapSource (
bitmapImage As Image
) As BitmapSource
Parameters
bitmapImage
Type: System.Drawing.ImageThe image to convert.
Return Value
Type: System.Windows.Media.Imaging.BitmapSource
A System.Windows.Media.Imaging.BitmapSource.
See Also
GetBitmapSource Overload
ImageConversionHelper Class
Microsoft.WindowsServerSolutions.Common Namespace
Return to top