Android Xamarin-在Glide Xamarin中使用AsBitmap()

Android Xamarin-在Glide Xamarin中使用AsBitmap(),android,xamarin.android,android-glide,Android,Xamarin.android,Android Glide,我使用自定义ImageView类使我的图像可缩放,它可以很好地用于drawable,但我在使用Glide库时面临这个问题 我想为什么会发生这种情况,因为这个自定义类不处理滑动类型,所以解决方案是将其转换为位图 链接到 但是当我实现相同的代码时,我会遇到AsBitmap()的问题,我找不到错误引用 这是我的错误信息 Error CS1061: Type `Com.Bumptech.Glide.DrawableTypeRequest' does not contain a definition f

我使用自定义ImageView类使我的图像可缩放,它可以很好地用于drawable,但我在使用Glide库时面临这个问题

我想为什么会发生这种情况,因为这个自定义类不处理滑动类型,所以解决方案是将其转换为位图

链接到

但是当我实现相同的代码时,我会遇到
AsBitmap()
的问题,我找不到错误引用

这是我的错误信息

 Error CS1061: Type `Com.Bumptech.Glide.DrawableTypeRequest' does not contain a definition for `AsBitmap' and no extension method `AsBitmap' of type `Com.Bumptech.Glide.DrawableTypeRequest' could be found. Are you missing an assembly reference? (CS1061) 
使用

反而

 Error CS1061: Type `Com.Bumptech.Glide.DrawableTypeRequest' does not contain a definition for `AsBitmap' and no extension method `AsBitmap' of type `Com.Bumptech.Glide.DrawableTypeRequest' could be found. Are you missing an assembly reference? (CS1061) 
Glide.With(Context).AsBitmap().Load(url).Into(img);