Added possibility to extract credit image

This commit is contained in:
Flamefire committed 2013-04-26 16:00:50 +02:00
1 parent 7cbae3d2db
commit 63c0688886
1 file changed
+8
+8
View File
@@ -1187,6 +1187,14 @@ namespace Vocaluxe.Base
reader.Read();
byte[] data = _GetBytes(reader);
tex = CDraw.AddTexture(w, h, ref data);
/*using (Bitmap bmp = new Bitmap(w, h))
{
BitmapData bmpData = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
Marshal.Copy(data, 0, bmpData.Scan0, w * h * 4);
bmp.UnlockBits(bmpData);
bmp.Save(fileName);
}*/
}
}