Esempio n. 1
0
        public Bitmap ShowTexture()
        {
            byte[] tmpArray = null;
            switch (bytePerPixel)
            {
            case 32:
                tmpArray = rawData;
                break;

            case 16:
                tmpArray = CTextureManager.ConvertByteArrayToRGBA(rawData, CGeneric.Compression.trueColor16Bits);
                break;

            case 8:
                tmpArray = CTextureManager.ConvertByteArrayToRGBA(rawData, CGeneric.Compression.max256Colors, palette, true);
                break;
            }

            return(CTextureManager.ConvertRGBAByteArrayToBitmap(tmpArray, sizeX, sizeY));
        }
Esempio n. 2
0
 public Bitmap GetBmpTexture()
 {
     return(CTextureManager.ConvertRGBAByteArrayToBitmap(headerBFF2.dataUncompressed, headerBFF2.sizeX, headerBFF2.sizeY));
 }