Esempio n. 1
0
 public static Bitmap TileMappedToBitmap(byte[] file, List <ushort> tilemap, int width, int height, BGR565 pal, ColorDepth colorDepth)
 {
     if (!_isConvertersInitialized)
     {
         InitilizeConverters();
     }
     byte[] alphaValues = null;
     byte[] indexes     = _indexedFormatConverters[colorDepth].DecompressIndexes(file, ref alphaValues);
     return(ImageTypeConverter.TiledToBmp(indexes, width, height, pal, tilemap, alphaValues));
 }
Esempio n. 2
0
 public static Bitmap RawIndexedToBitmap(byte[] file, int width, int height, BGR565 pal, TileMode tileMode, ColorDepth colorDepth)
 {
     if (!_isConvertersInitialized)
     {
         InitilizeConverters();
     }
     byte[] alphaValues = null;
     byte[] indexes     = _indexedFormatConverters[colorDepth].DecompressIndexes(file, ref alphaValues);
     if (tileMode == TileMode.Tiled)
     {
         return(ImageTypeConverter.TiledToBmp(indexes, width, height, pal, null, alphaValues));
     }
     else
     {
         return(ImageTypeConverter.NotTiledToBmp(indexes, width, height, pal, alphaValues));
     }
 }