distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Camera: focus and exposure point of interest #227

Closed sjamientje closed 8 years ago

sjamientje commented 9 years ago

The functions setFocusPointOfInterest and setExposurePointOfInterest need coordinates to work. what are these coordinates? I'm trying different values but all result in: dark / over exposed, blurry images. the values i use are < camera width and height (640x480) . Does any one have a working example ?

Thanks already Gerben

marchbold commented 9 years ago

This property represents a point where {0,0} corresponds to the top left of the picture area, and {1,1} corresponds to the bottom right in landscape mode with the home button on the right—this applies even if the device is in portrait mode.

Have you tried values in that range?

marchbold commented 9 years ago

Also if these functions return false then the functionality is not supported on the current device.

sjamientje commented 9 years ago

Hey, i have tried it but with no luck yet. Camera.instance.setFocusPointOfInterest(p); Camera.instance.setExposurePointOfInterest(p); where p = a fixed point now of 0.3, 0.3

Am i forgetting something? Do i have to call another method after callings these functions?

sjamientje commented 9 years ago

On IOS it does do something now, but on android it aint