V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
westlinkin
V2EX  ›  Android

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

  •  
  •   westlinkin · 2011-04-01 18:15:13 +08:00 · 7159 次点击
    这是一个创建于 4745 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我通过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 条回复    1970-01-01 08:00:00 +08:00
    westlinkin
        1
    westlinkin  
    OP
       2011-04-02 10:56:14 +08:00
    没人知道么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5313 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:00 · PVG 14:00 · LAX 23:00 · JFK 02:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.