I'm trying to decode a drawable resource into a bitmap like below.
BitmapFactory.Options options = new BitmapFactory.Options();
options.inScaled = true;
int destinationDimension = 128;
options.outHeight = destinationDimension;
options.outWidth = destinationDimension;
bmp = BitmapFactory.decodeResource(context.getResources(), defaultImage, options);
Log.d(TAG, "height = " + bmp.getHeight() + " width = " + bmp.getWidth());
But somehow the decoded bitmap is of dimesion 1344x1344.
height = 1344 width = 1344
How can i get bitmap of dimension 128x128.