I have a jpg image of size 1080*1080 in my drawable folder, when I am storing it in a Bitmap variable the size of the bitmap is not showing as 1080*1080, it is showing based on the device I am using, I want to draw the actual image with size 1080*1080 on a canvas, any idea how to get the bitmap with actual size
Bitmap bitmap = BitmapFactory.decodeResource(activity.getResources(), R.drawable.template_image);
int w = bitmap.getWidth();
int h = bitmap.getHeight();
The variable w and h are not showing 1080*1080, it's different on different devices