Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val bw = bitmap.width
- val width = vF_atv_camera_preview!!.width;
- val height = vF_atv_camera_preview!!.height;
- val location = IntArray(2)
- vL_atv_box!!.getLocationOnScreen(location);
- val l = location[0] * bw / width
- val t = location[1] * bh / height
- val w = vL_atv_box!!.getWidth() * bw / width;
- val h = vL_atv_box!!.getHeight() * bh / height;
- val resizedBitmap = Bitmap.createBitmap(bitmap, l, t, w, h);
- It's not cropping properly in all screen size, Please help me.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement