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)); }
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); }