Drawing::Bitmap
内部的にはGDI+なのかもしれないけど、.NETのBitmapは結構最強。
Drawing::Bitmap^ bitmap = gcnew Bitmap(1920,1080,1920*4,System::Drawing::Imaging::PixelFormat::Format32bppRgb,(IntPtr)Convert_yuv->rgba_buffer); pictureBox1->Image = bitmap; Drawing::Bitmap^ bmp = gcnew Bitmap(pictureBox1->Image,640,360); pictureBox1->Image = bmp; pictureBox1->Image->RotateFlip(System::Drawing::RotateFlipType ::RotateNoneFlipY);
画像サイズとメモリの番地を与えると勝手にPictureBoxに転送できる。リサイズもフリップも自由自在。
上はちょっとてきとうなやり方だけど…。