Results 1 to 7 of 7

Thread: Controlling Camera Flash in WP 7.5

  1. #1

    Thread Starter
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Controlling Camera Flash in WP 7.5

    Does anyone know how to control the camera's flash in Windows Phone 7.5?

    I understand the use of FlashMode to confirm flash is turned on so that it can be used, but I want to be able to control turning the flash on and turning it off, not just setting it to be used when a picture is captured.

    Is there a "turn flash on now" method?

    Brad!

  2. #2
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: Controlling Camera Flash in WP 7.5

    Just could find this and this

    Edit: check this link here, you might have the solution..sorry, couldn't test it.
    Last edited by TDQWERTY; Jan 31st, 2012 at 09:17 AM.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  3. #3
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Controlling Camera Flash in WP 7.5

    Hi,
    people have done it in flashlight applications, but I think they do it by constantly turning the camera on and off, although looking at Zune for flashlight apps, that appears to be cured
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  4. #4

    Thread Starter
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Controlling Camera Flash in WP 7.5

    I hadn't seen those solutions, but then I was looking for Windows Phone code rather than Windows Mobile code. I'll have to play with the code at the links you gave and see if it can be applied within WP.

    Brad!

  5. #5

    Thread Starter
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Controlling Camera Flash in WP 7.5

    Quote Originally Posted by petevick View Post
    Hi,
    people have done it in flashlight applications, but I think they do it by constantly turning the camera on and off, although looking at Zune for flashlight apps, that appears to be cured
    Part of what I want to do is mimic a flashlight app. It seemed like something that should have been very easy to do. It likely is, but I've not seen code to do it. I debated doing the camera on and off, but that seemed like a goofy work around. It really seems like it should be simple to turn on and off the LED....

    Thanks,

    Brad!

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Controlling Camera Flash in WP 7.5

    Hello,

    As far as I was aware, hardware vendors have access to this. i.e. the HTC Flashlight application can control the LED directly, but other non vendor applications need to rely on the old make the screen white trick to make a flashlight.

    Gary

  7. #7
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: Controlling Camera Flash in WP 7.5

    As you mentioned Windows Phone, here's something to play with.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width