[android-developers] PNG Decoder loading RGB_565 on 24 bit PNGs with alpha - then settings bitmap.config to null?? wtf

2010-05-14 Thread Robert Green
I've been dealing with this issue for some time but it's really causing me problems today. Here's what I'm doing: BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inScaled = false; return BitmapFactory.decodeResource(context.getResources(), resourceId, opts); And on many PNGs

Re: [android-developers] PNG Decoder loading RGB_565 on 24 bit PNGs with alpha - then settings bitmap.config to null?? wtf

2010-05-14 Thread Romain Guy
aapt will optimize PNGs already, no need to do it in Photoshop. That also means, for instance, that if your PNG does not have any transparent pixel, aapt will detect that and turn your PNG into an opaque PNG, hence giving you a 565 image. There are other optimizations too (for instance, if you