Is image cropping possible in an Android app?

  • Replies:0
Android_Dev
  • Forum posts: 1

Mar 1, 2019, 11:45:47 PM via Website

Hey,

Is it possible to crop an image on Android?

For example:

If the image must fit in a 400w x 400h space and it is 600w x 400h, can you horizontally center align it within the 400w x 400h placeholder space and crop out 100 pixels on the left and 100 pixels on the right.

OR

If the image must fit in a 400w x 400h space and it is 400w x 600h, can you vertically center align it to the image placeholder and crop out 100 pixels on the top and 100 pixels on the bottom.

This may also apply to images of many different resolutions coming in from a server - regardless of the resolution of the image, can you accomplish the above?

Thanks!

Be the first to answer