Beispiel #1
0
        internal static void OpenFile(string path, bool autosave = false, bool crop = true, char format = 'X')
        {
            // Handle file
            if (!File.Exists(path))
            {
                throw new Exception("Can only accept files, not folders");
            }
            string ext = Path.GetExtension(path);

            switch (ext)
            {
            case ".png":
                Bclim.MakeBclim(path, format);
                break;

            case ".bin":
            case ".bclim":
                Bclim.MakeBmp(path, autosave, crop);
                break;
            }
        }