BCH.BCHTool.parseEntry C# (CSharp) Method

parseEntry() private static method

private static parseEntry ( BCHTexture bchtex, byte data ) : Bitmap
bchtex BCHTexture
data byte
return System.Drawing.Bitmap
        private static Bitmap parseEntry(BCHTexture bchtex, byte[] data)
        {
            Bitmap img = new Bitmap(1, 1);
            if (bchtex.Format >= 0 && bchtex.Format < 0xB)
            {
                img = getIMG(bchtex, data);
            }
            else if (bchtex.Format == 0xB || bchtex.Format == 0xC || bchtex.Format == 0xD)
            {
                img = getIMG_ETC1(bchtex, data);
            }
            /*if (CHK_FLIPVERT.Checked)
            {
                img.RotateFlip(RotateFlipType.RotateNoneFlipY);
            }*/
            return img;
        }