用java如何把图片处理到指定大小 切割程序如下: public void cut(String srcImageFile,FileOutputStream fileout, int w, int h, int x1, int y1, int sw, int sh) { // TODO Auto-generated method stub try { // http://localhost:8080/ImpCra/createServlet?p=Sunset.jpg&x=117&y=201 &
本文实例讲述了android不读入内存获取图像宽高信息的方法。分享给大家供大家参考。具体如下:
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
Bitmap bitmap = BitmapFactory.decodeFile(/sdcard/test.jpg, options);
int w = options.outWidth;
int h = op