2017-03-09 20 views
2

私はそれが描画可能でうまく動作する、私の画像をズーム可能にするために、カスタムImageViewのクラスを使用していますが、私はグライドライブラリXamarin - AsBitmapを使用して()グライドXamarin内部

でそれを使用していたとき、私は問題に直面し、私はなぜ理解これが起こる、このカスタムクラスは、ソリューションがSolution

ScaleImageView img = new ScaleImageView(Context); 
Glide.With(Context).Load(url).AsBitmap().Into(img); 

が、私は同じコードを実装するとき、私は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) 

答えて

1

使用

Glide.With(コンテキスト).AsBitmap()ロード(URL).Into(IMG)。

代わりに:)

関連する問題