Xceed Words for .NET v5.0 Documentation
Xceed.Drawing.NET Assembly / Xceed.Drawing Namespace / Bitmap Class / Bitmap Constructor
The Bitmap's width.
The Bitmap's height.


In This Topic
    Bitmap Constructor
    In This Topic
    Creates a new Bitmap object from a width & height value.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal width As Integer, _
       ByVal height As Integer _
    )
    'Usage
     
    Dim width As Integer
    Dim height As Integer
     
    Dim instance As New Bitmap(width, height)
    public Bitmap( 
       int width,
       int height
    )

    Parameters

    width
    The Bitmap's width.
    height
    The Bitmap's height.
    Remarks

    In .NET5+, this will create a SKBitmap.

    In .NET Framework, this will create a System.Drawing.Bitmap.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, 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

    See Also