Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function CreateBitmapFromSource( _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal bitmap As Bitmap, _ ByVal format As ImageFormat _ ) As BitmapImage |
Visual Basic (Usage) | ![]() |
---|---|
Dim width As Integer Dim height As Integer Dim bitmap As Bitmap Dim format As ImageFormat Dim value As BitmapImage value = CommonMethods.CreateBitmapFromSource(width, height, bitmap, format) |
C# | |
---|---|
public static BitmapImage CreateBitmapFromSource( int width, int height, Bitmap bitmap, ImageFormat format ) |
C++/CLI | |
---|---|
public: static BitmapImage^ CreateBitmapFromSource( int width, int height, Bitmap^ bitmap, ImageFormat^ format ) |
Parameters
- width
- height
- bitmap
- format
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