From 63c0688886cc5c041449375969f3f2aebbac0227 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Fri, 26 Apr 2013 16:00:50 +0200 Subject: [PATCH] Added possibility to extract credit image --- Vocaluxe/Base/CDataBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Vocaluxe/Base/CDataBase.cs b/Vocaluxe/Base/CDataBase.cs index 3cd2d400..cbb4ca48 100644 --- a/Vocaluxe/Base/CDataBase.cs +++ b/Vocaluxe/Base/CDataBase.cs @@ -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); + }*/ + } }