|
@@ -51,9 +51,9 @@ public class JCameraView extends FrameLayout implements CameraInterface.CameraOp
|
|
|
private CameraMachine machine;
|
|
private CameraMachine machine;
|
|
|
|
|
|
|
|
//闪关灯状态
|
|
//闪关灯状态
|
|
|
- private static final int TYPE_FLASH_AUTO = 0x021;
|
|
|
|
|
- private static final int TYPE_FLASH_ON = 0x022;
|
|
|
|
|
- private static final int TYPE_FLASH_OFF = 0x023;
|
|
|
|
|
|
|
+ public static final int TYPE_FLASH_AUTO = 0x021;
|
|
|
|
|
+ public static final int TYPE_FLASH_ON = 0x022;
|
|
|
|
|
+ public static final int TYPE_FLASH_OFF = 0x023;
|
|
|
private int type_flash = TYPE_FLASH_OFF;
|
|
private int type_flash = TYPE_FLASH_OFF;
|
|
|
|
|
|
|
|
//拍照浏览时候的类型
|
|
//拍照浏览时候的类型
|
|
@@ -601,6 +601,10 @@ public class JCameraView extends FrameLayout implements CameraInterface.CameraOp
|
|
|
this.rightClickListener = clickListener;
|
|
this.rightClickListener = clickListener;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void setFlashType(int type) {
|
|
|
|
|
+ type_flash = type;
|
|
|
|
|
+ setFlashRes();
|
|
|
|
|
+ }
|
|
|
private void setFlashRes() {
|
|
private void setFlashRes() {
|
|
|
switch (type_flash) {
|
|
switch (type_flash) {
|
|
|
case TYPE_FLASH_AUTO:
|
|
case TYPE_FLASH_AUTO:
|