Skip to main content
edited title
Link
dardanel
  • 61
  • 1
  • 4

Android BitmapFacortyBitmapFactory.decodeStream loading BGR format?

Source Link
dardanel
  • 61
  • 1
  • 4

Android BitmapFacorty.decodeStream loading BGR format?

It is very odd.I want to load .png file via asset manager which is provided by android sdk. AssetManager manager; /........./ BitmapFactory.decodeStream(manager.open(path));

It returns BGR format data but opengl es 2.0 uses RGB format so , Blue seems red , red seems blue, how odd.

Is there any solution for it?

I use Nvıdia Tegra 2 (Android 2.2) device for test the application along with c++ via JNI.