I'm trying to create a scaled bitmap which fits in the Custom View but whenever I perform the operation the width gets cropped while the height of the bitmap fits into the custom view.
bitmapq = Bitmap.createScaledBitmap(bitmap,(custHeight*bitmap.getWidth())/bitmap.getHeight(),custHeight, true);
Custom View height - 1089. Custom View width- 1180. Width of bitmap - 2368. Height of bitmap - 4208