Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
397 views
in Technique[技术] by (71.8m points)

android - Fixed zoom factor React native camera

I would like to use the React native camera module and apply a zoom. A zoom function is available which takes an argument a float between 0 (minimum camera zoom) and 1 (maximum camera zoom).

I would like to have a fixed zoom (zoom x2 for example) but on any type of device.

So I cannot use this function, because if a device has a maximum zoom of x10 I should set the zoom to 0.20 while if another device has a maximum zoom of x30 I should put 0.06.

Is it possible to know the maximum zoom value of a device? From there I could solve my problem


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...