Bitmap Constructor (Image, Int32, Int32)

 
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)

new : 
        original:Image *
        width:int *
        height:int -> Bitmap

Parameters

original
Type: System.Drawing.Image

The Image from which to create the new Bitmap.

width
Type: System.Int32

The width, in pixels, of the new Bitmap.

height
Type: System.Int32

The height, in pixels, of the new Bitmap.

Exception Condition
Exception

The operation failed.

.NET Framework
Available since 1.1
Return to top
Show: