点击或拖拽改变大小

FastBitmapSliceBitmap 方法

Sweet 开发框架
Returns a bitmap that is a slice of the original provided 32bpp Bitmap. The region must have a width and a height > 0, and must lie inside the source bitmap's area

命名空间:  SweetUI
程序集:  SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static Bitmap SliceBitmap(
	Bitmap source,
	Rectangle region
)

参数

source
类型:System.DrawingBitmap
The source bitmap to slice
region
类型:System.DrawingRectangle
The region of the source bitmap to slice

返回值

类型:Bitmap
A Bitmap that represents the rectangle region slice of the source bitmap
异常
异常条件
ArgumentExceptionThe provided bimap is not 32bpp
ArgumentExceptionThe provided region is invalid
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架