Bitmap Constructor (Image, Size)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
Exception

The operation failed.

.NET Framework
Available since 1.1
Return to top
Show: