android-Camera.CameraInfo
2016-06-28 14:09
513 查看
Camera.CameraInfo
public static class Camera.CameraInfo
extends Object
java.lang.Object | |
↳ | android.hardware.Camera.CameraInfo |
We recommend using the new
android.hardware.camera2API for new applications.
Information about a camera
Summary
| |
---|---|
int | CAMERA_FACING_BACK The facing of the camera is opposite to that of the screen.相机的面对屏幕的是相反的。 |
int | CAMERA_FACING_FRONT The facing of the camera is the same as that of the screen.相机的面对屏幕的是一样的。 |
| |
---|---|
public boolean | canDisableShutterSound Whether the shutter sound can be disabled. 快门声音能否被禁用。 |
public int | facing The direction that the camera faces.相机所面临的方向。 |
public int | orientation The orientation of the camera image.相机图像的方向。 |
|
---|
Camera.CameraInfo() |
|
---|
From class java.lang.Object |
Constants
CAMERA_FACING_BACK
Added in API level 9int CAMERA_FACING_BACK
The facing of the camera is opposite to that of the screen.
Constant Value: 0 (0x00000000)
CAMERA_FACING_FRONT
Added in API level 9int CAMERA_FACING_FRONT
The facing of the camera is the same as that of the screen.
Constant Value: 1 (0x00000001)
Fields
canDisableShutterSound
Added in API level 17boolean canDisableShutterSound
Whether the shutter sound can be disabled.
On some devices, the camera shutter sound cannot be turned off through
enableShutterSound.
This field can be used to determine whether a call to disable the shutter sound will succeed.在一些设备上,相机快门声音通过enableShutterSound不能关闭。这个领域可以用来决定是否调用禁用快门声音会成功。
If this field is set to true, then a call of
enableShutterSound(false)will be successful. If set to false, then that call will fail, and the shutter sound will be played when
takePictureis
called.如果这个字段被设置为true,然后调用enableShutterSound(false)会成功的。如果设置为false,那么调用将失败,和快门声音将调用takePicture时。
facing
Added in API level 9int facing
The direction that the camera faces. It should be CAMERA_FACING_BACK or CAMERA_FACING_FRONT.
orientation
Added in API level 9int orientation
The orientation of the camera image. The value is the angle that the camera image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It should be 0, 90, 180, or 270.
For example, suppose a device has a naturally tall screen. The back-facing camera sensor is mounted in landscape. You are looking at the screen. If the top side of the camera sensor is aligned with the right edge
of the screen in natural orientation, the value should be 90. If the top side of a front-facing camera sensor is aligned with the right of the screen, the value should be 270.
See also:
setDisplayOrientation(int)
setRotation(int)
setPreviewSize(int, int)
setPictureSize(int, int)
setJpegThumbnailSize(int, int)
Public constructors
Camera.CameraInfo
Added in API level 9Camera.CameraInfo ()
相关文章推荐
- 最牛逼android上的图表库MpChart(二) 折线图
- 最牛逼android上的图表库MpChart(二) 折线图
- Android学习笔记(闪屏淡入渐变效果)
- android button 字母自动大写
- android-Camera.Area
- android 设置新手引导
- Android_library导出aar
- Scrollview子View为LinearLayout不够一屏留白情况
- Android inputType ,软键盘输入类型
- Android自动填写获取到的验证码
- Android Timer使用的异常:java.lang.IllegalStateException: Timer was canceled
- 获取到Android控件的高度
- 自定义圆形进度条,金额百分比
- 创建、配置Service
- android-android.graphics.Camera
- Android图片特效:黑白特效、圆角效果、高斯模糊
- Android Studio 笔记之SexyEditor,设置背景
- 关于对Android的videoView和mediaController的吐槽
- Android 软键盘属性
- android 两个应用之间的通信与调用