- I am accessing the live camera but i want to add an overlay above it, to take a specific picture and save the picture insde an overlay.
- My goal is as shown on the picture below
相关问题
- System.IO.MemoryMappedFiles on MonoTouch?
- Is it possible to use NSUbiquitousKeyValueStore wi
- Monotouch PInvoke System.EntryPointNotFoundExcepti
- MonoTouch.Dialog: Dismissing a Keyboard
- Gradient as a Buttons BorderColor?
相关文章
- How to use native C++ libraries in Mono for Androi
- UTF-16 safe substring in C# .NET
- How to programmatically select a row in UITableVie
- Get control's dimensions in CustomRenderer (Xa
- Streaming audio from microphone in iPhone using Xa
- example of parsing a receipt for an in-app purchas
- What does it mean if the garbage collector is “mor
- How to I bind to the iOS Foundations function NSLo
You can use UIImagePickerController to do that.
First make a overlay view like the one shown in your question.
when you are done with the overlay view then assign it to CameraOverlayView property of UIImagePickerController
Here is the rough example of that.
Update:
Use
CGImageCreateWithImageInRect
class to get the cropped version of image. Pass camera overlay's rect and image reference of picture taken by camera and this class will return the cropped image that camera overlay covers.Here is an example from Objective C and I'm sure you can do something similar in Xamarin.iOS
I managed to add CameraOverlayView, "to allow the user to take a picture inside the given rectangle"