一、稳安卓7.0怎么设置相机的拍摄方式,我设置成直接按屏幕拍摄了,感觉对焦不稳
在设置里取消触摸直接拍照
二、求支持手动对焦的手机照相软件(安卓的)多说点儿,我好挑选。谢谢了
carema360和UCAM
三、android camera 聚焦框怎么画
最近做关于Camera拍照的项目,让在拍照界面上添加对焦框,经过百度,Google,终于解决了。
先建个类用来实现画对焦框。
class DrawCaptureRect extends View
{
private int mcolorfill;
private int mleft, mtop, mwidth, mheight;
public DrawCaptureRect(Context context,int left, int top, int width, int height, int colorfill) {
super(context);
// TODO Auto-generated constructor stub
this.mcolorfill = colorfill;
this.mleft = left;
this.mtop = top;
this.mwidth = width;
this.mheight = height;
}
@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
Paint mpaint = new Paint();
mpaint.setColor(mcolorfill);
mpaint.setStyle(Paint.Style.FILL);
mpaint.setStrokeWidth(1.0f);
canvas.drawLine(mleft, mtop, mleft+mwidth, mtop, mpaint);
canvas.drawLine(mleft+mwidth, mtop, mleft+mwidth, mtop+mheight, mpaint);
canvas.drawLine(mleft, mtop, mleft, mtop+mheight, mpaint);
canvas.drawLine(mleft, mtop+mheight, mleft+mwidth, mtop+mheight, mpaint);
super.onDraw(canvas);
}
}
再在Activity上调用它,传入参数,再用addContentView将view加进来即可实现。
DrawCaptureRect mDraw = new DrawCaptureRect(CameraUIActivity.this, 190,10,100,100,getResources().getColor(R.drawable.lightred));
//在一个activity上面添加额外的content
addContentView(mDraw, new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
四、小米note手机拍照对焦方式选触摸还是连续好?拍照画幅选标准还是全屏好?
对焦触摸,拍照标准模式,
查看更多关于【写真】的文章