Exemplo n.º 1
0
        private void ProcessCell(ref byte[] chunkData, bool compressed)
        {
            BuildWidthHeight(ref chunkData);

            if (compressed)
            {
                raw_cel_compressed = chunkData;

                int count = width_in_pixels * height_in_pixels * (color_depth / 8);
                raw_data = Read.DecompressImageBytes(raw_cel_compressed, count);
            }
            else
            {
                raw_data = Read.BYTEARRAY(ref chunkData, width_in_pixels * height_in_pixels);
            }

            BuildColor32Direct();
        }