Loading files from local path - abbashosseini/Vinci GitHub Wiki

you can get list of bitmap object or list of file object in UI thread but its not going to display any of them because the UI thread dont have knowledge if any object there you wanna to access to displayed some where so this you have 3 ways but i like this 2 ways

one

// add object to ui thread

        viewHolder.image.post(new Runnable() {
            @Override
            public void run() {

              Bitmap bp = Vinci
                           .base(context)
                           .process()
                           .decodeFile(uri);

        viewHolder.image.setImageBitmap(bp)
            }
        });

two

// load image Asynchonously

Vinci
           .base(context)
           .process()
           .decodeFile(uri, new AsyncBitmap<Bitmap>() {
               @Override
               public void onFinish(Bitmap object) {
                     viewHolder.image.setImageBitmap(object);
               }
           });

three

use Bundle

⚠️ **GitHub.com Fallback** ⚠️