你好,
可以尝试使用Bitmap Constructor (Int32, Int32, PixelFormat)来指定每个像素的颜色数据的格式。
另外参考位图类型(http://msdn.microsoft.com/zh-cn/library/at62haz6.aspx)可以发现,
BMP文件每像素可以存储1、4、8、15、24、32
或 64
位。GIF
文件每像素最多能存储 8
位,所以它们只限于使用 256
种颜色。JPEG
文件每像素存储 24
位,因此它们能够显示超过 16,000,000
种颜色。GIF
文件只能使用每像素 1、2、4
或 8
位。
TIFF
文件能以每像素任意位来存储图像,并可以使用各种各样的压缩算法。
所以选择合适的位图类型也是必要的。
Regards,
Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.