Windows phone 7 - control camera zoom in via application - windows-phone-7.1

I am creating one application where I required to control the camera controls via my app such as camera capture, camera zoom in, zoom out, flash on/ off and so on.
Normally, in iPhone, API are available which can control the execution of hardware. I have tried to achieve same in windows phone 7 using silverlight. I have found the code to control the camera on event via code but not able to find any thing so that via button or slider, I can zoom in, zoom out.
I tried the reference video http://channel9.msdn.com/Shows/Inside+Windows+Phone/Inside-Windows-Phone-16-Mango-Camera-APIs and downloaded the code but still not found anything specific.
My question is that is it possible in windows phone 7 to have this feature and if so can anyone please guide me for this?
I also found one thing where when the camera is open, the images are coming in reverse direction :)
Please help me out of this.
Thanks,
David.

To zoom, you have to manually process the image.
You will need to add your own + and - zoom buttons and keep track of the zoom level.
Then, to show a zoomed viewfinder, you need to get the previewbuffer in a loop and zoom the image yourself to the current zoom level and then display it.
When the user takes a picture, you will apply the same zoom processing to the image in the CaptureImageAvailable event handler before saving.

Related

xamarin forms livecast-like page-inline camera

I was wondering if anyone here knows how to add a camera area like this one(similar to snapchat I guess) in Xamarin Forms (preferably,mainly with XAML)Camera area is suppose to have a livecast & it is going to be on iOS
needed this screen:
I tried Xam.Plugins.Media but couldn't manage to create the needed screen
The media plugin, goes into the platform specific Camera Screen, takes a picture then returns. You can't put extra buttons on the screen in this way.
To get a video feed and manage the capture yourself, you will need to implement a lot of platform specific things.
Android
https://developer.xamarin.com/recipes/android/media/video/record_video/
iOS (Look at the AV samples)
https://developer.xamarin.com/samples/ios/Media/

vidyo.io: Moving and resizing a video using VidyoConnector API

I downloaded the latest iOS package from vidyo.io and have successfully built my application integrated with the Vidyo libraries and using the VidyoConnector API.
When my app first comes up, I was very happy to see that a preview video appears on the screen just where I’d expect it to be! However, when moving the view to a different location, the video did not render quite how I intended.
The video did move to the x/y position on screen that I’d hoped but the size did not adjust to my new view dimensions. Then I found the VidyoConnectorShowViewAt API call and that did indeed resize my view but the positioning of the video then was off.
Is this the correct call to make when moving and resizing a view? Does anybody have any ideas what I could be doing wrong? Any help would be appreciated.
Sounds like you are pretty close. If you are just moving your view to different coordinates without resizing, then no API call is necessary. But if also resizing, then indeed use VidyoConnectorShowViewAt. My hunch is that your coordinates that you are passing are off, as x and y should be relative to the view itself and not to the main view. So try passing 0 and 0 as x and y and see if that helps.

Workaround for Zoom in Graph overview?

I am currently working on a medium size graph in gephi (5k nodes, 25k edges);
Whenever I click on "Center on Graph" button, the Zoom slider stops working. If the file is saved in this situation, this error stays even after reopening Gephi.
Closing this graph file and opening other file makes the Zoom starting working again.
Is there a way to fix the Zoom slider? If not, any workaround to zoom in and out without the slider? (for instance, using the script console...)
After doing some tests, I realized that an easy way to fix the problem is using the mouse wheel.
It changes the zoom level, and also fix the zoom slider.

Ghost effect using Open GLES

I am working with a sample application like vine. My requirement is that I have to create a 'ghost' filter for video as in vine.
Actual requirement is
-Record a video on long press on the view
-On pause of record, I need to show the last frame of the recorded video above my view. Please see the expected working here
I have checked PBJVision library and found this feature working. But I need to implement this feature separately in my application.
While analysing the code, I found that this can be achieved using Open GLES. I have tried using a GLKView but it just shows a dark shade instead of image frame. Since I am new in this area, please help me.

blackberry camera Application

I am implementing camera application using then example comes with blackberry plugin for eclipse named "CameraDemo" the problem is that when the screen loses focus It does not display the camera view istead of it shows like this
has anybody faced such problem whats the solution?
This way of taking picture (using the Player and VideoControl.getSnapshot()) does not work nice on all BB models. I'd even say it works nice only on a narrow set of BB models. So if you are going to use your app on a wide range of BB models, then this is not the right way to go.
Instead to take a picture use a built-in Camera app. Here is a starting point on how to do that.
Basically you invoke the built-in Camera app and listen for the file-system changes to detect a new image file path. Then you need to close the built-in Camera app somehow - it's possible to do that by simulating two 'Esc' button presses.
Yes, this sounds a bit hacky/over-complicated, but that's how BB engeneers arranged that for us. :) BTW, this is actually not so bad if compare with Android where different device manufactorers violate the common rules and implement the Camera app in their specific way so you are not able to write the code once covering all Androids.

Resources