Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function CreateBitmapSourceFromBitmap( _ ByVal bitmap As Bitmap, _ ByVal width As Integer, _ ByVal height As Integer _ ) As BitmapSource |
Visual Basic (Usage) | ![]() |
---|---|
Dim bitmap As Bitmap Dim width As Integer Dim height As Integer Dim value As BitmapSource value = CommonMethods.CreateBitmapSourceFromBitmap(bitmap, width, height) |
C++/CLI | |
---|---|
public: static BitmapSource^ CreateBitmapSourceFromBitmap( Bitmap^ bitmap, int width, int height ) |
Parameters
- bitmap
- width
- height
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2