public LoadImage ( IImageLoaderTask task ) : void | ||
task | IImageLoaderTask | Image loading task. |
return | void |
/// <summary> /// Loads the image into given imageView using defined parameters. /// </summary> /// <param name="parameters">Parameters for loading the image.</param> /// <param name="imageView">Image view that should receive the image.</param> public static IScheduledWork Into(this TaskParameter parameters, ImageViewAsync imageView) { var task = CreateTask(parameters, imageView); ImageService.LoadImage(task); return(task); }
/// <summary> /// Loads the image into given imageView using defined parameters. /// </summary> /// <param name="parameters">Parameters for loading the image.</param> /// <param name="imageView">Image view that should receive the image.</param> public static IScheduledWork Into(this TaskParameter parameters, ImageViewAsync imageView) { var task = new ImageLoaderTask(ImageService.Config.DownloadCache, new MainThreadDispatcher(), ImageService.Config.Logger, parameters, imageView); ImageService.LoadImage(task); return(task); }
private static IScheduledWork Into(this TaskParameter parameters, Func <Image> getNativeControl, Action <WriteableBitmap, bool> doWithImage) { var task = new ImageLoaderTask(ImageService.Config.DownloadCache, new MainThreadDispatcher(), ImageService.Config.Logger, parameters, getNativeControl, doWithImage); ImageService.LoadImage(task); return(task); }
private static IScheduledWork Into(this TaskParameter parameters, Func <UIView> getNativeControl, Action <UIImage, bool, bool> doWithImage, float imageScale = -1f) { var task = new ImageLoaderTask(ImageService.Config.DownloadCache, new MainThreadDispatcher(), ImageService.Config.Logger, parameters, getNativeControl, doWithImage, imageScale); ImageService.LoadImage(task); return(task); }