Esempio n. 1
0
        /// <summary>
        /// Create the scaler with the given version of Anime4K
        /// </summary>
        /// <param name="algorithm">the version of anime4k to use</param>
        public Anime4KScaler(Anime4KAlgorithmVersion algorithm)
        {
            switch (algorithm)
            {
            case Anime4KAlgorithmVersion.v10RC2:
                anime4K = new Anime4K010RC2();
                break;

            case Anime4KAlgorithmVersion.v09:
            default:
                anime4K = new Anime4K09();
                break;
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Create the scaler with the given implementation of Anime4K
 /// </summary>
 /// <param name="anime4k">the version of anime4k to use</param>
 public Anime4KScaler(IAnime4KImplementation anime4k)
 {
     anime4K = anime4k;
 }