mardi 24 février 2015

Load generated images into picasso

I am creating thumbnails from a video dynamically. I don't save these to a file, so I don't have a URI. How do I load these into picasso for caching any ideas or possible alternatives ?


Code to generate the thumbnails from the video.



retriever.setDataSource(temp);
long frameTimestampMicroseconds = timeStamp * 1000;
Bitmap originalBitmap = retriever.getFrameAtTime(frameTimestampMicroseconds);
Bitmap scaledBitmap = resize(originalBitmap);
originalBitmap.recycle();
publishProgress(scaledBitmap);

Aucun commentaire:

Enregistrer un commentaire