我需要访问Bitmap的每个像素,使用它们,然后将它们保存到Bitmap.
使用Bitmap.GetPixel()和Bitmap.SetPixel(),我的程序运行缓慢.
Bitmap.GetPixel()
Bitmap.SetPixel()
我怎么能快速转换Bitmap到byte[]和回?
Bitmap
byte[]
我需要byte[]与length = (4 * width * height)含有各像素的RGBA数据.
length = (4 * width * height)
.net c# graphics bitmap pixels
.net ×1
bitmap ×1
c# ×1
graphics ×1
pixels ×1