System::Drawing::Bitmap::Clone 方法

Bitmap::Clone() method

创建当前对象的副本。

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

ReturnValue

当前对象的副本。

另见

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

创建一个 Bitmap 对象,表示当前对象所表示的位图图像的某个区域的副本。

SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(Rectangle rect, Imaging::PixelFormat format)
参数类型描述
rect矩形指定要复制的区域的矩形
formatImaging::PixelFormatBitmap 的像素格式

ReturnValue

已创建的 Bitmap 对象

另见

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

创建一个 Bitmap 对象,表示当前对象所表示的位图图像的某个区域的副本。

SharedPtr<Bitmap> System::Drawing::Bitmap::Clone(RectangleF rect, Imaging::PixelFormat format)
参数类型描述
rectRectangleF指定要复制的区域的矩形
formatImaging::PixelFormatBitmap 的像素格式

ReturnValue

已创建的 Bitmap 对象

另见