点击或拖拽改变大小

FastBitmapLock 方法 (FastBitmapLockFormat)

Sweet 开发框架
Locks the bitmap to start the bitmap operations. If the bitmap is already locked, an exception is thrown. The provided pixel format should be a 32bpp format.

命名空间:  SweetUI
程序集:  SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public FastBitmapFastBitmapLocker Lock(
	FastBitmapLockFormat pixelFormat
)

参数

pixelFormat
类型:SweetUIFastBitmapLockFormat
A pixel format to use when locking the underlying bitmap

返回值

类型:FastBitmapFastBitmapLocker
A fast bitmap locked struct that will unlock the underlying bitmap after disposal
异常
异常条件
InvalidOperationExceptionThe bitmap is already locked
ExceptionThe locking operation in the underlying bitmap failed
InvalidOperationExceptionThe bitmap is already locked outside this fast bitmap
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架