【问题标题】:Xamarin PCL FFImageLoading: How to get the image without using CachedImage ViewXamarin PCL FFImageLoading:如何在不使用 CachedImage 视图的情况下获取图像
【发布时间】:2016-12-31 00:43:53
【问题描述】:

我们可以直接从 FFImageLoading 获取位图吗?我知道我可以使用 CachedImage 视图,但我目前正在使用 NControl 和 NGraphics 使用触摸事件进行自定义绘图

【问题讨论】:

    标签: xamarin portable-class-library image-loading ffimageloading


    【解决方案1】:
    ImageService.Instance.LoadUrl(urlToImage)
        .Into(nativeImageView);
    

    var drawable = await ImageService.Instance.LoadUrl(urlToImage)
        .AsBitmapDrawableAsync();
    
    var image = ImageService.Instance.LoadUrl(urlToImage)
        .AsUIImageAsync();
    

    【讨论】:

      猜你喜欢
      • 2018-08-17
      • 1970-01-01
      • 2015-09-17
      • 1970-01-01
      • 2018-07-12
      • 2017-06-14
      • 2016-12-02
      • 2018-08-13
      • 1970-01-01
      相关资源
      最近更新 更多