Tuesday, October 18, 2011

Android Compress Image File


f = new FileInputStream("path");

scale=2;

BitmapFactory.Options op=new BitmapFactory.Options();

op.inSampleSize=scale;

Bitmap bitmap=BitmapFactory.decodeStream(f,null,op);



No comments:

Post a Comment