Skip to main content
.NET Framework Class Library
Bitmap Constructor





Initializes a new instance of the Bitmap class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodBitmap(Image)Initializes a new instance of the Bitmap class from the specified existing image.
Public methodBitmap(Stream)Initializes a new instance of the Bitmap class from the specified data stream.
Public methodBitmap(String)Initializes a new instance of the Bitmap class from the specified file.
Public methodBitmap(Image, Size)Initializes a new instance of the Bitmap class from the specified existing image, scaled to the specified size.
Public methodBitmap(Int32, Int32)Initializes a new instance of the Bitmap class with the specified size.
Public methodBitmap(Stream, Boolean)Initializes a new instance of the Bitmap class from the specified data stream.
Public methodBitmap(String, Boolean)Initializes a new instance of the Bitmap class from the specified file.
Public methodBitmap(Type, String)Initializes a new instance of the Bitmap class from a specified resource.
Public methodBitmap(Image, Int32, Int32)Initializes a new instance of the Bitmap class from the specified existing image, scaled to the specified size.
Public methodBitmap(Int32, Int32, Graphics)Initializes a new instance of the Bitmap class with the specified size and with the resolution of the specified Graphics object.
Public methodBitmap(Int32, Int32, PixelFormat)Initializes a new instance of the Bitmap class with the specified size and format.
Public methodBitmap(Int32, Int32, Int32, PixelFormat, IntPtr)Initializes a new instance of the Bitmap class with the specified size, pixel format, and pixel data.
Top
Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?