views:

26

answers:

0

Hi All, I would like to know how I can pan one image over another. I have tried using matrix.postTranslate (below) but it seems to have no effect. Can anyone suggest a method that would work.

private void drawMatrix(){

 Matrix matrix = new Matrix();
 //matrix.postSkew(curSkewX, curSkewY);
   // matrix.postScale(curScale, curScale);
    //matrix.postRotate(curRotate);
    matrix.postTranslate(curSkewX, curSkewY);

    Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, bmpWidth, bmpHeight, matrix, true);
    myImageView.setImageBitmap(resizedBitmap);

}

Thanks, Grade