Creates a new Bitmap. If an image is provided then it will be drawn into the new Bitmap, scaled to fill the entire space. If an image is provided but no width or height then the new Bitmap will take its dimensions from the supplied image.
Syntax

[C#]

Bitmap(int width, int height);
Bitmap(int width, int height, PixelFormat format);
Bitmap(Stream stream);
Bitmap(string filename);
Bitmap(Image image);
Bitmap(Image image, int width, int height);
Bitmap(Image image, Size size);
Bitmap(Size size);

[Visual Basic]

Sub New(width As Integer, height As Integer)
Sub New(width As Integer, height As Integer, format As PixelFormat)
Sub New(stream As Stream)
Sub New(filename As String)
Sub New(image As Image)
Sub New(image As Image, width As Integer, height As Integer)
Sub New(image As Image, size As Size)
Sub New(size As Size)
Params
Name Description
width The width of the bitmap in pixels.
height The height of the bitmap in pixels.
format The pixel format for the bitmap.
stream The stream containing the image data that should be loaded.
filename The path to the image file that should be loaded.
image An image to draw into this bitmap.
size The size of the bitmap in pixels.
Notes

None.

Example

None.