System::Drawing::Bitmap::Clone method

Bitmap::Clone() method

Creates a copy of the current object.

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

ReturnValue

A copy of the current object.

See Also

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)
ParameterTypeDescription
rectRectangleThe rectangle that specifies the region to copy
formatImaging::PixelFormatThe pixel format for the new Bitmap

ReturnValue

The created Bitmap object

See Also

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)
ParameterTypeDescription
rectRectangleFThe rectangle that specifies the region to copy
formatImaging::PixelFormatThe pixel format for the new Bitmap

ReturnValue

The created Bitmap object

See Also