android - Scaling large bitmap alternative approach -
firstly aware of recommended approach of using injustdecodebounds
, insample
size load bitmaps @ size close desired size. broad approach gets image approximate target.
i have though of utilising options.indensity
, options.intargetdensity
trick native loader scaling image more exactly desired target size. set options.indensity
actual width of image , options.intargetdensity
desired width , indeed image @ desired size (aspect ration happens remain same in case). set image.setdensity(density_none)
on resulting image , appears work ok.
anyone know of wrong approach? thoughts on memory efficiency , image quality?
i have got improve image management opengl 2.0 , surface views.
android bitmap scaling
No comments:
Post a Comment