Inheritance: ImageLoader
Exemple #1
0
        internal static Image FromFile(string file, ImageTagSet tagFilter)
        {
            var toolkit = Toolkit.CurrentEngine;

            if (toolkit == null)
            {
                throw new ToolkitNotInitializedException();
            }

            var loader = new FileImageLoader(toolkit);

            return(LoadImage(loader, file, tagFilter));
        }
Exemple #2
0
        public static Image FromFile(string file)
        {
            var toolkit = Toolkit.CurrentEngine;

            if (toolkit == null)
            {
                throw new ToolkitNotInitializedException();
            }

            var loader = new FileImageLoader(toolkit);

            return(LoadImage(loader, file, null));
        }
Exemple #3
0
        public static Image FromFile(string file)
        {
            var toolkit = Toolkit.CurrentEngine;
            if (toolkit == null)
                throw new ToolkitNotInitializedException ();

            var loader = new FileImageLoader (toolkit);
            return LoadImage (loader, file, null);
        }