这方法连吧主都不会
//java code↓第一个参数是读取图片的路径,第二个参数是保存图片的路径,此方法只适用于android
public void copyImage(String inputPath, String outputPath){
try
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
Bitmap image = BitmapFactory.decodeFile(inputPath);
image.compress(Bitmap.CompressFormat.PNG,100,out);
FileOutputStream s = new FileOutputStream(new File(outputPath));
s.write(out.toByteArray());
s.close();
}
catch (Exception e)
{}
}
//java code↓第一个参数是读取图片的路径,第二个参数是保存图片的路径,此方法只适用于android
public void copyImage(String inputPath, String outputPath){
try
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
Bitmap image = BitmapFactory.decodeFile(inputPath);
image.compress(Bitmap.CompressFormat.PNG,100,out);
FileOutputStream s = new FileOutputStream(new File(outputPath));
s.write(out.toByteArray());
s.close();
}
catch (Exception e)
{}
}











