android 从手机相册中取出图片后,我想要把它们随意摆放在屏幕上,每次出现的角度,方向都不同,如何实现,有人有好的demo吗,希望指点一下。谢谢啦

解决方案 »

  1.   

    把图片当成桌面来用  可以用setWallPaper来更换桌面
    至于角度什么的在Canvas里可以设置
    在范例大全里有几个跟改桌面的例子 
    可以看看 
      

  2.   

    Bitmap bm=BitmapFactory.decodeFile(fileName);
    mImageView.setImageBitmap(bm);
      

  3.   

    嗯。取图片 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
    intent.addCategory(Intent.CATEGORY_OPENABLE);
    intent.setType("image/*");
                            StartActvityForResult(result);设置的话直接可以在onActivityResult拿到那个data即bitmap通过matrix设置角度, Matrix m = new Matrix();
    m.setRotate(degrees)
    Bitmap.createBitmap(source, x, y, width, height, m, filter)没试过