これは、バイト[]配列を画像に変換する私のコードです
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");
}
}
そして、私はこれを取得します:
代替テキスト http:////img11.imageshack.us/img11/4853/testacr.png
コードのどこに問題があるのですか?なぜそれが起こるのですか? どうやって元に戻すの?