这是我的代码把一个byte []数组转换为图像我得到了C#反转图像
unsafe
{
//convert the UInt32[] into byte array and then assign the pointer to it
fixed (byte* ptr = Misc.ConvertFromUInt32Array(image))
{
Bitmap bmp = new Bitmap(200,64,800,
PixelFormat.Format32bppRgb,
new IntPtr(ptr));
bmp.Save("test.bmp");
}
}
而且我得到这个:
alt text http:////img11.imageshack.us/img11/4853/testacr.png
凡在的问题代码,为什么会发生?如何将其翻转回正常?
你只能有一个图片...显示反转的一个,如果你必须选择。 – ojblass 2009-04-13 04:30:31
Misc.ConvertFromUInt32Array(image)里面发生了什么?这个问题不是在那里发生的,而不是保存图像的一小段代码? – Xiaofu 2009-04-13 04:44:19