Taking Photo with Flash not working but Torch is Ok.

Hi , I used below code to take photo.
1) The code work when I used the Torch light
2) problem:
 The same code cannot work when I used the Flashcontrol ( this is supported by the device).
 The Image is shown a brief moment , then the camera back to preview mode. But I have already disabled.
The code:
These are used:
   <Capture Element x:name="camera" />
   <image x:Name="preview">
 private async void TakePhoto(object sender, RoutedEventArgs e)
            try
                var bounds = Window.Current.Bounds;
                double height = bounds.Height;
                double width = bounds.Width;
                //-- create the source
                streamimage = new InMemoryRandomAccessStream();
                ImageEncodingProperties imageProperties = ImageEncodingProperties.CreateJpeg();
                //--capture the image
                 await m_mediaCaptureMgr.CapturePhotoToStreamAsync(imageProperties, streamimage);
                //-- <Capture Element x:name="camera" />
                camera.Visibility = Visibility.Collapsed;
                await m_mediaCaptureMgr.StopPreviewAsync();
                m_mediaCaptureMgr.Dispose();
                //--- create pic
                _bitmap = new BitmapImage();
                streamimage.Seek(0);
                await _bitmap.SetSourceAsync(streamimage);
                double d_imgW = _bitmap.PixelWidth;
                double d_imgH = _bitmap.PixelHeight;               
                //-- <image x:Name="preview">
                preview.Source = _bitmap;
                preview.Visibility = Visibility.Visible;
                preview.RenderTransform = new ScaleTransform() { ScaleX = zoom.ScaleX, ScaleY = zoom.ScaleY, CenterX = zoom.CenterX, CenterY = zoom.CenterY };
            catch (Exception ex)
Please help.
Thanks

Can someone help me? I just cannot get it to work! 
 When I use flashControl,
it just stop here :
   //--capture the image
   await m_mediaCaptureMgr.CapturePhotoToStreamAsync(imageProperties, streamimage);
Thanks

Similar Messages

  • Photo Booth flash not working in Maverick or Yosemite

    I have noticed that the photo booth flash in Maverick on my Macbook Pro and in Yosemite on my iMac is not working Screen flash is enabled on both.
    So this is happening on two different computers. Does anyone know how to fix this? All my photos are so dark on both of my computers using Maverick and Macbook Pro.
    It works fine on system 10.6.8 though.
    Has anyone else had this problem too?
    Martha

    In case anyone is interested in your screen flash not working in the Yosemite or Maverick photo booth application, I finally called Apple today and he kept insisting it was working on his - I asked him to take a pic with the screen flash enabled and then disable it and he said it came out the same. And rationalized that it was because he was in a well lit room. I kept telling him in my old photo booth from system 10.6.8 that my face was lit up and my husband had reflections from his glasses so we went from him wanting me to reinstall my software (I refused since both computers were having the same problem - one using Yosemite and the other using Maverick)  to him finally going into HIS partitioned disk that has system 10.6.8 on it to discover that the flash there reflected off HIS glasses too. Bottom line is he admitted there has to be some flaw that prevented the photo booth flash from working for Maverick and Yosemite. Whew, finally validation!
    Martha

  • Photo booth flash not working on mavericks

    the flash is not working please help out

    yes and i am able to see the flash on the screen (as it goes white) but not in the pic.........and yeah your way didnt work......but thx for the rply

  • When taking photos ,with flash the picture ends up with a blue hue?

    I have recently upgraded my software to the latest 4.3.5 os. Coincidently I am unable to take decent photos with the flash in low light, instead I get this blue over the whole photograph. Is this right? Beforvthe upgrade I could take goog flashed photos. any ideas?

    Disregard, it was the background problem.  Can't figure out how to delete this discussion!

  • Flash not working but it did yesterday

    I have an Intel MacBook Pro with MacOS 10.6.3. I have Firefox v3.6.3 and Safari v4.0.5  I have the latest versions of Flash and Shockwave and have tried unistalling, reinstalling rebooting, etc., to no avail. I have even tried the beta version 10.1.81.3
    This inane addictive game worked yesterday; it does not today
    http://armorgames.com/play/3614/crush-the-castle
    Can anyone suggest why?
    Thank you.

    OOPS .. It is WIN7 on a VAIO laptop almost 2 years old.  THe Canon less than 1 year old.

  • I have been taking photos with my Ipad for several months and sending them via email and Facebook.  Now it will transfer photos to FB but not email addresses.   What could be the problem?          email an

    Have been taking photos with my Ipad and sending them to email address and FB.  For some reason it will now send photos to FB but not my email address.  What could be the problem?

    Does your email provider have a limit on the total file size allowed on their server? It could be that emails with photos send in the past are still on your email server. They might even be in the servers trash folder. If the total MB of those emails exceeds the amount allowed then no additional emails can be received. Try using a web mail page to check and edit what's on the email server.

  • Flash not working in photo booth.

    The flash in photo booth on my iMac is not working.  When I take a pic, the screen flashes but the pic is still dark.  Was working fine yesterday.  I did install the latest osx today.  That's the only changes since then.

    In case anyone is interested in your screen flash not working in the Yosemite or Maverick photo booth application, I finally called Apple today and he kept insisting it was working on his - I asked him to take a pic with the screen flash enabled and then disable it and he said it came out the same. And rationalized that it was because he was in a well lit room. I kept telling him in my old photo booth from system 10.6.8 that my face was lit up and my husband had reflections from his glasses so we went from him wanting me to reinstall my software (I refused since both computers were having the same problem - one using Yosemite and the other using Maverick)  to him finally going into HIS partitioned disk that has system 10.6.8 on it to discover that the flash there reflected off HIS glasses too. Bottom line is he admitted there has to be some flaw that prevented the photo booth flash from working for Maverick and Yosemite. Whew, finally validation!
    Martha

  • Will BlazeDS work with Flash (not Flex or AIR)?

    Does anyone know if Blaze can work with Flash(not flex or AIR)?
    If so, how? Any examples?
    Thanks,
    James

    Hallo Russell,<br /><br />I'm a beginner with Flex and Flash, and I already succeeded calling the remote object with Flex. But my company requires me to use Flash (AS3).<br /><br />So, could you please give me an example of ActionScript code to call a RemoteObject in BlazeDs? The url? and call string?<br /><br />I also use Spring behind.<br /><br />I tried to use the url: "http://localhost:8080/myAppName"<br />and then the call string is "myService.getList"<br /><br />myService is the destination in the service-config.xml<br />getList is the method from the remote object which is a Java class.<br /><br />Here is the snippet from remoting-config<br />  <destination id="clasificationService"><br />    <properties><br />      <factory>spring</factory><br />      <source>clasificationManager</source><br />    </properties><br />  </destination><br /><br />and Here is the snippet from services-config:<br /><br />    <!-- Spring factory registration --><br />    <factories><br />        <factory id="spring" class="com.airbus.cm.cd.controller.SpringFactory" /><br />    </factories><br />    <channels><br />        <channel-definition id="channel-amf" class="mx.messaging.channels.AMFChannel"><br />            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"<br />                class="flex.messaging.endpoints.AMFEndpoint" /><br />            <properties><br />                <polling-enabled>false</polling-enabled><br />            </properties><br />        </channel-definition><br />        <br />        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"><br />            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/><br />            <properties><br />                <add-no-cache-headers>false</add-no-cache-headers><br />            </properties><br />        </channel-definition><br /><br />        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"><br />            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/><br />            <properties><br />                <polling-enabled>true</polling-enabled><br />                <polling-interval-seconds>4</polling-interval-seconds><br />            </properties><br />        </channel-definition><br /><br />    </channels><br /><br />Best regards,<br />Raymond.

  • I am getting frustrated with Apple not working with Flash player on some of my favorite web sites. Is there any alternative that will work on I-pad instead of flash?

    I am getting frustrated with Apple not working with Flash Player on some of my favorite web sites! Is there another alternative to watching these site options on my I-pad?

    Flash is not, and probably never will be, supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/ . Plus it would be up to Adobe to make a version of their flash player that works on iOS devices - something which they have never managed to do and which they have now given up on trying to do.
    Browser apps such as Skyfire, iSwifter and Puffin 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store, so your could try checking there for your sites (and there is the built-in YouTube app).

  • HT201317 My shared photo album will not work. I am trying to upload photos but I doesn't show up in my new device. I've done it before but now it's not working. My old device is a 4s iOS 7.1.1 and my new one is a 5 iOS 8.1.1. How can I make the pictures s

    my photo stream does not work at all. I've tried making a new album, but that does not work. So I've tried using an already existing album and deleting the pictures there. I decided to only upload 1 photo from my old phone (iPhone 4s iOS 7.1.1) to see if it'll show up on my new device (iPhone 5 iOS 8.1.1) it doesnt even show up in my new phone (iPhone 6 iOS 8.1.2) this picture is what shows up on both my iPhone 6 and 5 but on the 4s there is a picture that I "uploaded" and a second one that came out of nowhere. I do not know what to do because in the past this has worked out for me and it shows up on all three devices

    You can't restore to a backup that was taken on a device which has a higher version of iOS than on your iPad, you will have to update your iPad to 8.1.3 to be able to restore to it
    You should be able to update your iPad via Settings > General > Software Update

  • Hi am trying to save Data into a write to measurement file vi using a NI PXI 1042Q with a real time mode but it is not working but when i run it with uploading it into the PXI it save in to the file

    Hi am trying to save Data into a write to measurement file vi using a NI PXI 1042Q and DAQ NI PXI-6229 with a real time mode but it is not working but when i run it without uploading it into the PXI it save in to the file please find attached my vi
    Attachments:
    PWMs.vi ‏130 KB

     other problem is that the channel DAQmx only works at real time mode not on stand alone vi using Labview 8.2 and Real time 8.2

  • My iphone 3g is getting really slow. I done full restore ,deleted most apps . Not many photos in my album. i have no videos on my iphone. When taking photo with my iphone it takes ages for camera to open up. Very slow to take photo. Any suggestions? Help!

    My iphone 3g is getting really slow. I done full restore ,deleted most apps . Not many photos in my album. i have no videos on my iphone. When taking photo with my iphone it takes ages for camera to open up. Very slow to take photo. Any suggestions? Please help !!!!

    Thank you very much for your reply gdgmacguy :) I did all you suggested apart from restore as new device . Didn't know I could do that . After restore I did restore from back up only,  as I didn't want to end up without contacts details on my phone. If I restore as new device how do I get my all contacts? Still will have to use back up? Sorry if it sounds like I don't know what i am doing, i just have no one to ask who would know. Thank you

  • I need to get into contact with Adobe support on renewal of my CC subscription which does not work but I cannot find any PHONE number just the referral to this forum - help, what should I do?? Thanks!!

    I need to get into contact with Adobe support on renewal of my CC subscription which does not work but I cannot find any PHONE number just the referral to this forum - help, what should I do?? Thanks!!

    Use the web chat:
    Contact Customer Care
    Mylenium

  • Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • I bought Smart Photo Converter which do,s not work but i can't get any refund , i have contacted the company but no reply and that was two weeks ago...so do you talk to someone at the App store?

    I bought Smart Photo Converter which does not work but i can't get any refund , i have contacted the company but no reply and that was two weeks ago...so do you talk to someone at the App store?

    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

Maybe you are looking for

  • Upgrade Question Final Cut Pro 5.0.4

    I'm a bit confused and need clarification. I have Final Cut Pro 5.0.4. Can I download the upgrade to 5.1.4? It won't let me download the update to 5.1.4 because my version is prior to FCP 5.1. When I go into the update for 5.0.4 and download it, the

  • Query Design - Report Results Problem

    Hi SDN! I am having trouble referencing the result value for a metric in Query Designer Metric = QTY * PRICE Metric is set to Calculate Result As: Summation QTY.....PRICE....Metric 5...........10.........50 1...........5...........5 2...........7....

  • Essbase Studio- DTS Issue 11.1.2.1

    Hi Everyone, A few months ago, we built our cube through Essbase Studio so that we could allow drill through reports on the cube. We set Dynamic Time Series on our PERIOD dimension at the Year and Quarter Level. Our hierarchy looks like this: PERIOD

  • Black title with clip audio

    Hi! I started using iMovie 11 and I'm having a small issue with it. I want to finish my project by fading to a black screen and having then text appearing on the screen, but keeping the audio of the clip. I've tried to drop a title AFTER a clip but i

  • Random resetting of smooth scrolling

    Smooth Scrolling is set to "Snap" for all my folio's articles  except for one, the table of contents, which is set to "Both Directions". Every so often after an update this TOC article's smooth scrolling appears to be reset to "Snap" and the only way