This documentation is archived and is not being maintained.

Bitmap Constructor

.NET Framework 1.1

Initializes a new instance of the Bitmap class.

Overload List

Initializes a new instance of the Bitmap class from the specified existing image.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Image)
[C#] public Bitmap(Image);
[C++] public: Bitmap(Image*);
[JScript] public function Bitmap(Image);

Initializes a new instance of the Bitmap class from the specified data stream.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Stream)
[C#] public Bitmap(Stream);
[C++] public: Bitmap(Stream*);
[JScript] public function Bitmap(Stream);

Initializes a new instance of the Bitmap class from the specified file.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public Bitmap(string);
[C++] public: Bitmap(String*);
[JScript] public function Bitmap(String);

Initializes a new instance of the Bitmap class from the specified existing image and with the specified size.

[Visual Basic] Public Sub New(Image, Size)
[C#] public Bitmap(Image, Size);
[C++] public: Bitmap(Image*, Size);
[JScript] public function Bitmap(Image, Size);

Initializes a new instance of the Bitmap class with the specified size.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(Integer, Integer)
[C#] public Bitmap(int, int);
[C++] public: Bitmap(int, int);
[JScript] public function Bitmap(int, int);

Initializes a new instance of the Bitmap class from the specified data stream.

[Visual Basic] Public Sub New(Stream, Boolean)
[C#] public Bitmap(Stream, bool);
[C++] public: Bitmap(Stream*, bool);
[JScript] public function Bitmap(Stream, Boolean);

Initializes a new instance of the Bitmap class from the specified file.

[Visual Basic] Public Sub New(String, Boolean)
[C#] public Bitmap(string, bool);
[C++] public: Bitmap(String*, bool);
[JScript] public function Bitmap(String, Boolean);

Initializes a new instance of the Bitmap class from a specified resource.

[Visual Basic] Public Sub New(Type, String)
[C#] public Bitmap(Type, string);
[C++] public: Bitmap(Type*, String*);
[JScript] public function Bitmap(Type, String);

Initializes a new instance of the Bitmap class from the specified existing image and with the specified size.

[Visual Basic] Public Sub New(Image, Integer, Integer)
[C#] public Bitmap(Image, int, int);
[C++] public: Bitmap(Image*, int, int);
[JScript] public function Bitmap(Image, int, int);

Initializes a new instance of the Bitmap class with the specified size and with the resolution of the specified Graphics object.

[Visual Basic] Public Sub New(Integer, Integer, Graphics)
[C#] public Bitmap(int, int, Graphics);
[C++] public: Bitmap(int, int, Graphics*);
[JScript] public function Bitmap(int, int, Graphics);

Initializes a new instance of the Bitmap class with the specified size and format.

[Visual Basic] Public Sub New(Integer, Integer, PixelFormat)
[C#] public Bitmap(int, int, PixelFormat);
[C++] public: Bitmap(int, int, PixelFormat);
[JScript] public function Bitmap(int, int, PixelFormat);

Initializes a new instance of the Bitmap class with the specified size, pixel format, and pixel data.

[Visual Basic] Public Sub New(Integer, Integer, Integer, PixelFormat, IntPtr)
[C#] public Bitmap(int, int, int, PixelFormat, IntPtr);
[C++] public: Bitmap(int, int, int, PixelFormat, IntPtr);
[JScript] public function Bitmap(int, int, int, PixelFormat, IntPtr);

See Also

Bitmap Class | Bitmap Members | System.Drawing Namespace

Show: