当前位置:   article > 正文

调用系统照相机_android 12调用系统相机录像,设置分辨率

android 12调用系统相机录像,设置分辨率


  调用系统摄像头拍照

  Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(headPath)));
    startActivityForResult(intent, 1); 



裁剪图像照片

String userCode=dbutils.queryString("user_info", "userCode", null, null);
  headPath=MyApplication.savePath+"head/"+userCode+".jpg";
  
  File headFile = new File(headPath);
  
  if(headFile.exists())
  {
   Bitmap bit=commUtil.getBit(headPath);
   
   iv_main_head.setImageBitmap(createCircleImage(bit,bi

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号