AmaroK86.ImageFormat.ImageFile.CprFormat C# (CSharp) 메소드

CprFormat() 공개 정적인 메소드

public static CprFormat ( string format ) : bool
format string
리턴 bool
        public static bool CprFormat(string format)
        {
            switch (format)
            {
                case "DXT1":
                case "DXT5":
                case "ATI2": return true;
                case "V8U8":
                case "A8R8G8B8":
                case "G8":
                case "R8G8B8": return false;
                default: throw new FormatException("Unknown Format");
            }
        }
    }