Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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