Last active
June 29, 2018 10:25
-
-
Save BALUSANGEM/483eb7ffed206eb9bea45fcc3d80ed9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val listener = ImageDecoder.OnHeaderDecodedListener { decoder, imageinfo, source -> | |
decoder.setTargetSize(100, 100) | |
//you can use setTargetSampleSize(2) to create a image with half of original height and width | |
} | |
val drawable = ImageDecoder.decodeDrawable(source, listener); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment