List of usage examples for android.graphics Matrix postSkew
public boolean postSkew(float kx, float ky)
From source file:Main.java
public static Bitmap getSkewBitmap(Bitmap mBitmap, float xRatio, float yRatio) { int width = mBitmap.getWidth(); int height = mBitmap.getHeight(); Matrix matrix = new Matrix(); matrix.postSkew(xRatio, yRatio); Bitmap mScrewBitmap = Bitmap.createBitmap(mBitmap, 0, 0, width, height, matrix, true); return mScrewBitmap; }