5
Picasso.with(context).load("url").into(imageView);
ここではURLの代わりにどのように私はこれを達成することができます。 以下のように -次のようにピカソライブラリでビットマップを直接読み込む方法
Picasso.with(context).load(bitmap).into(imageView);
Picasso.with(context).load("url").into(imageView);
ここではURLの代わりにどのように私はこれを達成することができます。 以下のように -次のようにピカソライブラリでビットマップを直接読み込む方法
Picasso.with(context).load(bitmap).into(imageView);
これはあなたのために働くはずです。 ピカソで返されたURIを使用します。 (から取ら:is there away to get uri of bitmap with out save it to sdcard?)
public Uri getImageUri(Context inContext, Bitmap inImage) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
inImage.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
String path = MediaStore.Images.Media.insertImage(inContext.getContentResolver(), inImage, "Title", null);
return Uri.parse(path);
}