Hi, I am creating a bitmap from a png image called image.png . Image is 75 (width) x 92 (height). When I run this code:
Bitmap bitmap = BitmapFactory.decodeResource(this.context.getResources(), R.drawable.image Log.d("image", "height: " + bitmap.getHeight() + " width: " + bitmap.getWidth());
log magazines:
DEBUG/image(3550): height: 138 width: 113
and the image on the screen is larger than other images with a size of 75 x 92. What can be done to get the Android to download the image with the correct size?
Franziskus karsunke
source share