Search code examples
androidbitmappicasso

Picasso loading already created bitmap?


I am trying to get Picasso to load a bitmap.

When I try to use Picasso.with(getActivity()).load(bitmap1).into(image); it gives me the error he method load(Uri) in the type Picasso is not applicable for the arguments (Bitmap).

How would I be able to make it so that Picasso loads my bitmap? thanks.


Solution

  • You don't need Picasso to do this. Picasso is for loading images from the internet or from the disk. You can display a Bitmap in your ImageView like this:

    image.setImageBitmap(bitmap);