Open GoogleCodeExporter opened 8 years ago
how could i set the texture size correctly (by using the bitmap) so that i can
set the texture to the sprite of background properly? that is to say that i
can see the bitmap as a original or that is not out of shape.
use bitmap to fill a texture ,then use the texture to fill the sprite of the
background.Anyone have the good method? please help.
Original comment by yeshengw...@gmail.com
on 1 Dec 2011 at 10:10
Hello,
We have the same problem, and we have solved it using the bitmap options. This
Our code.
Options opts = new Options();
opts.inDensity = context.getResources().getDisplayMetrics().densityDpi;
Bitmap bm = BitmapFactory.decodeResource(context.getResources(), identifier,
opts);
I hope that help you :).
Original comment by alvaro...@gmail.com
on 28 May 2012 at 7:39
Original issue reported on code.google.com by
yeshengw...@gmail.com
on 1 Dec 2011 at 10:04