点击或拖拽改变大小

FastBitmap 类

Sweet 开发框架
Encapsulates a Bitmap for fast bitmap pixel operations using 32bpp images 快速图片处理类
继承层次
SystemObject
  SweetUIFastBitmap

命名空间:  SweetUI
程序集:  SweetUI (在 SweetUI.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public class FastBitmap : IDisposable

FastBitmap 类型公开以下成员。

构造函数
  名称说明
公共方法FastBitmap
Creates a new instance of the FastBitmap class with a specified Bitmap. The bitmap provided must have a 32bpp depth
Top
属性
  名称说明
公共属性DataArray
Gets an array of 32-bit color pixel values that represent this FastBitmap
公共属性Height
Gets the height of this FastBitmap object
公共属性Locked
Gets a boolean value that states whether this FastBitmap is currently locked in memory
公共属性Scan0
Gets the pointer to the first pixel of the bitmap
公共属性Stride
Gets the stride width (in int32-sized values) of the bitmap
公共属性StrideInBytes
Gets the stride width (in bytes) of the bitmap
公共属性Width
Gets the width of this FastBitmap object
Top
方法
  名称说明
公共方法Clear(Color)
Clears the bitmap with the given color
公共方法Clear(Int32)
Clears the bitmap with the given color
公共方法静态成员ClearBitmap(Bitmap, Color)
Clears the given bitmap with the given color
公共方法静态成员ClearBitmap(Bitmap, Int32)
Clears the given bitmap with the given color
公共方法ClearRegion(Rectangle, Color)
Clears a square region of this image w/ a given color
公共方法ClearRegion(Rectangle, Int32)
Clears a square region of this image w/ a given color
公共方法CopyFromArray
Copies the contents of the given array of colors into this FastBitmap. Throws an ArgumentException if the count of colors on the array mismatches the pixel count from this FastBitmap
公共方法静态成员CopyPixels
Performs a copy operation of the pixels from the Source bitmap to the Target bitmap. If the dimensions or pixel depths of both images don't match, the copy is not performed
公共方法CopyRegion(Bitmap, Rectangle, Rectangle)
Copies a region of the source bitmap into this fast bitmap
公共方法静态成员CopyRegion(Bitmap, Bitmap, Rectangle, Rectangle)
Copies a region of the source bitmap to a target bitmap
公共方法Dispose
Disposes of this fast bitmap object and releases any pending resources. The underlying bitmap is not disposes, and is unlocked, if currently locked
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetPixel
Gets the pixel color at the given coordinates. If the bitmap was not locked beforehands, an exception is thrown
公共方法GetPixelInt
Gets the pixel color at the given coordinates as an integer value. If the bitmap was not locked beforehands, an exception is thrown
公共方法GetPixelUInt
Gets the pixel color at the given coordinates as an unsigned integer value. If the bitmap was not locked beforehands, an exception is thrown
公共方法GetType (继承自 Object。)
公共方法Lock
Locks the bitmap to start the bitmap operations. If the bitmap is already locked, an exception is thrown
公共方法Lock(FastBitmapLockFormat)
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.
受保护的方法MemberwiseClone (继承自 Object。)
公共方法静态成员memcpy(IntPtr, IntPtr, UInt64)
.NET wrapper to native call of 'memcpy'. Requires Microsoft Visual C++ Runtime installed
公共方法静态成员memcpy(Void*, Void*, UInt64)
.NET wrapper to native call of 'memcpy'. Requires Microsoft Visual C++ Runtime installed
公共方法静态成员memset
.NET wrapper to native call of 'memset'. Requires Microsoft Visual C++ Runtime installed
公共方法SetPixel(Int32, Int32, Color)
Sets the pixel color at the given coordinates. If the bitmap was not locked beforehands, an exception is thrown
公共方法SetPixel(Int32, Int32, Int32)
Sets the pixel color at the given coordinates. If the bitmap was not locked beforehands, an exception is thrown
公共方法SetPixel(Int32, Int32, UInt32)
Sets the pixel color at the given coordinates. If the bitmap was not locked beforehands, an exception is thrown
公共方法静态成员SliceBitmap
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
公共方法ToString (继承自 Object。)
公共方法Unlock
Unlocks the bitmap and applies the changes made to it. If the bitmap was not locked beforehand, an exception is thrown
Top
字段
  名称说明
公共字段静态成员BytesPerPixel
Specifies the number of bytes available per pixel of the bitmap object being manipulated
Top
扩展方法
  名称说明
公共扩展器方法ConsoleWriteLine (由 SystemEx 定义。)
公共扩展器方法WriteConsole (由 UConsole 定义。)
Top
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架