westlinkin
V2EX  ›  Android

通过intent调用相机,返回图片小

  •  
  •   westlinkin · Apr 1, 2011 · 15911 views
    This topic created in 5552 days ago, the information mentioned may be changed or developed.
    我通过intent调用相机:
    Intent getImageByCamera= new Intent("android.media.action.IMAGE_CAPTURE");
    startActivityForResult(getImageByCamera, 1);

    然后在onActivityResult中
    try {
    super.onActivityResult(requestCode, resultCode, data);
    Bundle extras = data.getExtras();
    Bitmap bitmap = (Bitmap)extras.get("data");
    //这里的bitmap太小了,我在相机里设置的是最高的分辨率
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }

    我该怎么样才能得到大的图片?
    1 replies    1970-01-01 08:00:00 +08:00
    westlinkin
        1
    westlinkin  
    OP
       Apr 2, 2011
    没人知道么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2559 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:32 · PVG 09:32 · LAX 18:32 · JFK 21:32
    ♥ Do have faith in what you're doing.