Clone()

Bitmap::Clone() method

Creates a copy of the current object.

virtual SharedPtr<Image> System::Drawing::Bitmap::Clone() override

Return Value

A copy of the current object.

Bitmap::Clone(Rectangle, Imaging::PixelFormat) method

Creates a Bitmap object that represents a copy of a region of the bitmap image represented by the current object.

SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(Rectangle rect, Imaging::PixelFormat format)

Arguments

ParameterTypeDescription
rectRectangleThe rectangle that specifies the region to copy
formatImaging::PixelFormatThe pixel format for the new Bitmap

Return Value

The created Bitmap object

Bitmap::Clone(RectangleF, Imaging::PixelFormat) method

Creates a Bitmap object that represents a copy of a region of the bitmap image represented by the current object.

SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(RectangleF rect, Imaging::PixelFormat format)

Arguments

ParameterTypeDescription
rectRectangleFThe rectangle that specifies the region to copy
formatImaging::PixelFormatThe pixel format for the new Bitmap

Return Value

The created Bitmap object

See Also