示例#1
0
文件: Image.cs 项目: git-thinh/limada
        internal static Image FromCustomLoader(IImageLoader loader, string fileName, ImageTagSet tags)
        {
            var toolkit = Toolkit.CurrentEngine;

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

            var ld = new StreamImageLoader(toolkit, loader);

            return(LoadImage(ld, fileName, tags));
        }
示例#2
0
文件: Image.cs 项目: RandallFlagg/xwt
        internal static Image FromCustomLoader(IImageLoader loader, string fileName, ImageTagSet tags)
        {
            var toolkit = Toolkit.CurrentEngine;
            if (toolkit == null)
                throw new ToolkitNotInitializedException ();

            var ld = new StreamImageLoader (toolkit, loader);
            return LoadImage (ld, fileName, tags);
        }