User Resize photo in Imageview

Asked

Viewed 219 times

1

Good morning,

I would like to request some information source, tutorial or example, how to resize a photo in an Imageview, because I did not find anything about it in my searches.

I am developing a testing application that performs the following task.

I have an Imageview 200dp x 120dp, the user clicks on a button and takes a photo, this photo is loaded in the imageview.

Currently, the code is resizing the image until it fully fits in Imageview, but I need it to load whole ( cutting ) and allow the user to adjust and position it the way he wants, before actually "cutting" the image off.

The general idea is as follows.

User clicks the photo button and takes the photo (the app loads the native app from the device itself).

The photo is loaded into an auxiliary view, which demonstrates to the user the part that will be visible (lighter) and the part that will be discarded (shaded).

The user positions the photo and confirms, then the photo is loaded in the initial Imageview.

If anyone knows any source that I can research information to develop something in this style, I am grateful.

Sincerely yours,

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.