Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn on camera flash in WP7

Is is possible to turn on the camera's flash in WP7?


2 Answers

This is now possible in the Windows Phone OS 7.1 SDK.

Here's the link to the MSDN article: Access Camera API on WP7

PhotoCamera cam = new Microsoft.Devices.PhotoCamera(CameraType.Primary);
cam.FlashMode = FlashMode.On;
like image 111
Chris Ching Avatar answered Nov 25 '25 09:11

Chris Ching


This can't be done programatically in the current SDK.

The user is in exclusive control of this feature on their phone.

like image 32
Mick N Avatar answered Nov 25 '25 09:11

Mick N



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!