Skip to content

Conversation

mblenton
Copy link

@mblenton mblenton commented Jan 28, 2019

const images = [ { uri: '/data/user/0/com.camapp/cache/Camera/image-1.jpg' }, { uri: '/data/user/0/com.camapp/cache/Camera/image-2.jpg' } ];

@mike-niemand
Copy link

mike-niemand commented Jun 6, 2019

@mblenton This looks good. Thanks

@mblenton
Copy link
Author

mblenton commented Jun 6, 2019 via email

@mike-niemand
Copy link

mike-niemand commented Jun 6, 2019 via email

private Bitmap loadBitmapByLocalResource(String uri) {
return BitmapFactory.decodeResource(this.context.getResources(), resourceDrawableIdHelper.getResourceDrawableId(this.context, uri));
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 3;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it needed to sub sample the image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants