I have a QrCodeCode with used the libary "Zxing". Now i want to Take a picture of the complete screen inside the QrCodeScanner. The Problem is i dont want to open the Camera. I want to create a Button that just takes a picture.
I Tried to use the Media.Plugin but this one leav's my App and that is not my goal.
EDIT
as best zxing just should capture my actual screen.
Related
I am trying to make an app on xamarin forms in C# where the user can click on an image and then click on one of seven places and the image will move to the place that was clicked on. I've tried using the TranslateTo functionality of images but that does not seem to work. I also tried using Skia Sharp to create bitmaps becuase they have an intuitive coordinate system but I don't know how to make the SKBitmaps clickable. Is there a way, using skia sharp or not, to make clickable images that can be moved according to an intuitive coordinate system?
It is possible to do it in SkiaSharp, but you have to handle your touch input/gestures on your SKCanvasView - translate them into touch input/gestures to your primitives within SKCanvasView, then change position of your primitives according to your logic and finally refresh your SKCanvasView.
Using Xamarin, I am trying to implement the feature that allows a user to draw on top of a video. Note that the drawing doesn't need to be saved.
I would like some input on what the best way of implementing this. My initial though would be to create a drawable custom view that when the user clicks the draw icon, the current frame of the video is passed to that drawable view.
This seems like a pretty great plugin, which I could use to create a custom view https://github.com/martijn00/XamarinMediaManager.
Would really appreciate any help or suggestions :)
I am using the Camera code base from
https://github.com/rasmuschristensen/XamarinFormsImageGallery
to open camera, take picture and show in the gallery. In the droid project, after taking the picture, the dialog asks either to keep the photo or discard it using OK and Retry button. Is there anyway, I can avoid this step and go to next step.
Regards
Using the Media plugin you won't be able to do it. This plugin use the standard way of capturing photos in Android which rely on the device actual camera app. The save/retry functionality is part of the Camera App and we don't have access to it as this will be different between Android "providers" (Samsung, LG, Sony, etc)
One way to avoid this is capturing the photo within your own app using the SurfaceView and not using the camera app. I found this example but unfortunately is written in Java but I think it's not too hard to translate into Xamarin/C#.
I am using the CameraCaptureUI dialog to capture images and video from the camera in my Windows Store App. I am using an alternative input device, so I want to trigger the various operations in the CameraCaptureUI dialog from my own C# code, instead of having the user click the mouse or use touch to trigger them. Right now the CameraCaptureUI dialog appears to be a "black box" and I can't see any entry or intercept points. Is there a way to trigger the various CameraCaptureUI dialog operations (take picture, start video record, stop video record, etc.) from my C# code?
If not, is there a more direct WinRT interface to the camera I can use to to do this myself and if so, what is it called so I can research it?
CameraCaptureUI IS a simplified black box dialog that isn't really part of your app, so you can configure how it gets initialized, but not interact with it with code once it starts.
You can use the CaptureElement + MediaCapture approach to host a camera preview in your app, but it's quite a bit more work. You can look at my CameraCaptureControl to find inspiration or simply use it in your app.
I m developing an application in WP7,C#. When I launch the photochooser task from my application it shows me all the images from cameraroll, sample pictures and media library. Actually I would like to show every part seperately. For example when I click a button it should show me only images stored in camera roll. When I click another button it should show images only from media library. So please let me know if there is any way to do it.
There is no way to customize the behaviour of the chooser.
If you want different behaviour you'll need to create the UI yourself and get the images via MediaLibrary.Pictures
See an example at http://andy-teamg.blogspot.com/2010/07/windows-phone-7-selecting-device-photos.html