点击或拖拽改变大小

FastBitmapCopyRegion 方法 (Bitmap, Bitmap, Rectangle, Rectangle)

Sweet 开发框架
Copies a region of the source bitmap to a target bitmap

命名空间:  SweetUI
程序集:  SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static void CopyRegion(
	Bitmap source,
	Bitmap target,
	Rectangle srcRect,
	Rectangle destRect
)

参数

source
类型:System.DrawingBitmap
The source image to copy
target
类型:System.DrawingBitmap
The target image to be altered
srcRect
类型:System.DrawingRectangle
The region on the source bitmap that will be copied over
destRect
类型:System.DrawingRectangle
The region on the target bitmap that will be changed
异常
异常条件
ArgumentExceptionThe provided source and target bitmaps are the same bitmap
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架