Added possibility to extract credit image
This commit is contained in:
1 parent
7cbae3d2db
commit
63c0688886
1 file changed
+8
@@ -1187,6 +1187,14 @@ namespace Vocaluxe.Base
|
|||||||
reader.Read();
|
reader.Read();
|
||||||
byte[] data = _GetBytes(reader);
|
byte[] data = _GetBytes(reader);
|
||||||
tex = CDraw.AddTexture(w, h, ref data);
|
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);
|
||||||
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user