OverkillManatee / beginning-android-games

Automatically exported from code.google.com/p/beginning-android-games
0 stars 0 forks source link

AndroidGraphics newPixmap() method does not use color format suggestion. #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just looking at the code in AndroidGraphics.
2.
3.

What is the expected output? What do you see instead?
I believe the AndroidGraphics.newPixmap() method is not using the format passed 
in.  Around line 44, you create a new instance of Options and properly set the 
inPreferredConfig, but then when the BitmapFactory.decodeStream() is called, 
you do not use the version that accepts the options.

I believe the decodeStream method call should look like this:

bitmap = BitmapFactory.decodeStream(in,null, options);

What version of the product are you using? On what operating system?
Windows 7 Home Prem 64 Bit

Please provide any additional information below.

Original issue reported on code.google.com by btarl...@gmail.com on 30 Dec 2011 at 11:05