Turn right
private void Right () {//TODO auto-generated method Stubint BMPW = Bm.getwidth (), int bmph = Bm.getheight ();d ouble Scale =1; scalew = (float) (Scalew*scale); Scaleh = (float) (Scaleh*scale); Matrix Mt =new Matrix (); Mt. Postscale (Scalew, Scaleh); Mt.setrotate (curdegrees=curdegrees+5); Bitmap bitmap= bitmap.createbitmap (BM, 0, 0, BMPW, bmph, MT, true); Iv.setimagebitmap (bitmap);}
Left
private void Left () {int BMPW = Bm.getwidth (), int bmph = Bm.getheight ();d ouble scale =1; scalew = (float) (Scalew*scale) ; Scaleh = (float) (Scaleh*scale); Matrix Mt =new Matrix (); Mt. Postscale (Scalew, Scaleh); Mt.setrotate (curdegrees=curdegrees-5); Bitmap bitmap= bitmap.createbitmap (BM, 0, 0, BMPW, bmph, MT, true); Iv.setimagebitmap (bitmap);}
Narrow
private void Small () { int width =bm.getwidth (); int height = bm.getheight (); Double scale = 0.8; scalew= (float) (scale*scalew); Scaleh = (float) (Scaleh*scale); Matrix Mt =new Matrix (); Mt.postscale (Scalew, Scaleh); Bitmap resizebmp = Bitmap.createbitmap (bm,0,0,width,height,mt,true); Iv.setimagebitmap (resizebmp);}
Amplification
private void Big () {int BMPW = Bm.getwidth (); int bmph = Bm.getheight (); Double scale =1.25; Scalew = (float) (Scalew*scale); Scaleh = (float) (Scaleh * scale); Matrix MT = new Matrix (); Mt.postscale (Scalew, Scaleh); Bitmap BMP = Bitmap.createbitmap (BM, 0, 0, BMPW, bmph, MT, True); Iv.setimagebitmap (BMP);}
Android about image zoom, rotation simple app