jimmy
V2EX  ›  Android

问个关于系统裁切图片之后,图片很小的问题

  •  
  •   jimmy · Dec 24, 2014 · 12797 views
    This topic created in 4187 days ago, the information mentioned may be changed or developed.

    是这样的。
    调用系统的裁切图片的功能,设置了它的宽跟高,切出来的图片尺寸是对了,但是在Intent中获取到的bitmap却很小,都是240 * 240的尺寸,怎么取到我指定的尺寸的bitmap?
    我使用uri传递,得到的bitmap也是这样的尺寸。
    不知道要怎么整了,有没有思路?

    4 replies    2014-12-25 12:56:33 +08:00
    skyxin888
        1
    skyxin888  
       Dec 25, 2014
    要不试下将裁减的图片保存到某个文件夹下,然后将uri传递 看看拿到的 尺寸对不对
    jimmy
        2
    jimmy  
    OP
       Dec 25, 2014
    @skyxin888 那个尺寸是对的,只是intent直接返回的bitmap尺寸不对。
    skyxin888
        3
    skyxin888  
       Dec 25, 2014
    @jimmy 那你就讲新保存的uri 通过intent 传递到你想要的activity 。 intent传递的数据大小是有限制的是40K,还是传递uri,再进行操作
    jimmy
        4
    jimmy  
    OP
       Dec 25, 2014
    @skyxin888 试过uri的了,转成bitmap之后也是很小,比如我裁切指定的宽高都是1024,uri得到的路径转成bitmap,得到的宽高还是240。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1068 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:48 · PVG 06:48 · LAX 15:48 · JFK 18:48
    ♥ Do have faith in what you're doing.