将图像拆分为较小的块,随机播放块然后保存到Android中的SD卡中

时间:2014-06-04 06:55:32

标签: android

我正在处理一项任务,在这项任务中,我将图像拆分为较小的块,我已成功完成with the help of this link,现在我的观点是,我想要将这些块洗牌,然后保存到我的SD卡中是的,任何帮助将非常感谢提前感谢..

  1. 想要洗牌。
  2. 将这些图片移动后,将图像保存到我的SD卡中
  3. 这是图片:

    enter image description here

1 个答案:

答案 0 :(得分:1)

尔汉,

在ChunkedImageActivity.java中, 使用Collections.shuffle(imageChunks);后 ArrayList imageChunks = getIntent()。getParcelableArrayListExtra(" image chunks");

你会得到洗牌的图像。

要将这些图像存储在SD卡中,请使用FileOutputStream。 请点击此链接http://looksok.wordpress.com/2013/07/13/android-tutorial-save-bitmap-image-on-android-sd-card/