texture channel

This commit is contained in:
Kanglai Qian
2020-03-03 12:46:51 +08:00
parent 80dc24b487
commit 7b33d41172
2 changed files with 114 additions and 17 deletions

View File

@ -921,6 +921,7 @@ namespace AssetStudio
var gch = GCHandle.Alloc(buff, GCHandleType.Pinned);
var imagePtr = gch.AddrOfPinnedObject();
var bitmap = new Bitmap(m_Width, m_Height, stride, PixelFormat.Format16bppRgb565, imagePtr);
bitmap = bitmap.Clone(new Rectangle(0, 0, bitmap.Width, bitmap.Height), PixelFormat.Format32bppArgb);
gch.Free();
return bitmap;
}