When the surrounding is dark, I want to enable the night mode, if the camera has this feature, to have clear pictures. Could some expert show me how to do it, please?
Public Sub IsTenBitProfileSupported As Boolean
Dim keys() As Int = Camera.GetCameraCharacteristics(id).As(JavaObject).RunMethod("get", Array(StaticCameraCharacteristics.GetField("REQUEST_AVAILABLE_CAPABILITIES")))
For Each key As Int In keys
If key = 0x00000012 Then Return True
Next
Return False
End Sub
However my test devices do not support it and it is too complex to implement like this. I'll implement it in the future.
You can use this code, add it to CamEx2, to check whether your device supports it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.