Esempio n. 1
0
        internal static Image MakeBclim(string path, char fc)
        {
            byte[] bclim = Bclim.GetBclim(path, fc);
            string fp    = Path.GetFileNameWithoutExtension(path);

            if (fp == null)
            {
                throw new ArgumentNullException(nameof(path), "Path does not contain a file name");
            }

            fp = $"new_{fp.Substring( fp.IndexOf( '_' ) + 1 )}";
            string pp      = Path.GetDirectoryName(path);
            string newPath = Path.Combine(pp, fp + ".bclim");

            File.WriteAllBytes(newPath, bclim);

            return(Bclim.MakeBmp(newPath));
        }