As shown in the following figure I want to implement "move and scale" functionality for the image fetched from the photo library.
If you have any idea or code then provide me.
Thanx in advance.
As shown in the following figure I want to implement "move and scale" functionality for the image fetched from the photo library.
If you have any idea or code then provide me.
Thanx in advance.
This is extremely late, but hopefully it'll help.
In the UIImagePickerController Delegate method
imagePickerController:didFinishPickingMediaWithInfo:
the "moved" and "scaled" image is accessed through theUIImagePickerControllerEditedImage
key like thisHope it helps someone!
Please go through this answer only if others are not working.... :)
In ZBar project there are some sample applications, which takes the pic of Barcode. It allows to Move and Scale the image. I havnt looked at the code. But you can try as your last option.
See this answer by Jane Sales
From The answer for this question Set dimensions for UIImagePickerController “move and scale” cropbox
Here is link for Re-sizing + UIImage
1) Link for Cropping a UIImage
2) Another link
3) More things to do with UIImage
In Swift 4.2, be sure
pickerController.allowsEditing = true
is added to the method that accesses your photos.Then, create the following method with the two qualifying "if statements". The "if statements" will cover two different scenarios: 1) the user edits the photo -
.editedImage
OR 2) the user did not edit the photo -.originalImage
.For this method to work properly, be sure to place the
.editedImage
"if statement" first. I don't know why this is so, but I had to.Maybe you are looking for:
Then in the delegate method: