Matrix matrix=new Matrix(); imageView.setScaleType(ScaleType.MATRIX); //required matrix.postRotate((float) angle, pivX, pivY); imageView.setImageMatrix(matrix);
Matrix matrix=new Matrix(); imageView.setScaleType(ScaleType.MATRIX); //required //matrix.postRotate((float) angle, pivX, pivY); matrix.postRotate(90f, imageView.getDrawable().getBounds().width()/2, imageView.getDrawable().getBounds().height()/2); imageView.setImageMatrix(matrix);
int orientation; ExifInterface exif; Matrix m=new Matrix(); try { exif = new ExifInterface(f.getAbsolutePath()); orientation=exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); if(orientation == 3) { m.postRotate(180); } else if(orientation==6) { m.postRotate(90); } else if(orientation == 8) { m.postRotate(270); } exif.saveAttributes(); } catch (IOException e) { e.printStackTrace(); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง