settranslate专题

图像的平移: matrix.setTranslate(100, 200);

//在画布上画原图片的像素点 Matrix matrix = new   Matrix(); matrix.setTranslate(100, 200);       //像素点相对画布向右100sp,向下移动200sp canvas.drawBitmap(bitmap, matrix, paint);   //1.原图  2.矩阵