Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Bitmap Constructor (Image, Size)

Bitmap Constructor (Image, Size)

Initializes a new instance of the Bitmap class from the specified existing image, scaled to the specified size.

Namespace:  System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public Bitmap(
	Image original,
	Size newSize
)

Parameters

original
Type: System.Drawing.Image

The Image from which to create the new Bitmap.

newSize
Type: System.Drawing.Size

The Size structure that represent the size of the new Bitmap.

ExceptionCondition
Exception

The operation failed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft