BitmapFactory and RGB Formats

166 views
Skip to first unread message

Андрей Жданов

unread,
Jul 13, 2011, 5:38:13 AM7/13/11
to andro...@googlegroups.com
Hello everyone! :) I've found next problem. I've convert image resource with:
        
BitmapFactory.Options o = new BitmapFactory.Options();
        o.inPreferredConfig = Bitmap.Config.RGB_565;
BitmapFactory.decodeResource(r, R.raw.test003, o);

Bitmap has format ARGB_8888/4444 (and others) but i expect in out RGB_565!
Problem manifested with my device: HTC Desire HD. At an android emulator it's Ok 

David Turner

unread,
Jul 13, 2011, 7:53:50 PM7/13/11
to Android Developers
Not NDK related, please try android-developers

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/v48E-9V4dUYJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Reply all
Reply to author
Forward
0 new messages