android - Scaling bitmap to 80 percent -


i trying scale bitmap using options.insamplesize, understand mapping goes this

  • if insamplesize 1 resulting image 100%

  • if insamplesize 2 resulting image 50%

  • if insamplesize 3 resulting image 33%

  • if insamplesize 4 resulting image 25%

  • if insamplesize 5 resulting image 20%

but want resulting image 80% scale. how that?

i think may misunderstanding point of insamplesize. it's designed save memory. if you're trying draw image @ 80% size can use matrix resize down (or up) after you've read file memory.


Comments