Code example for Path

Methods: offset

public class DrawingHistoryLine extends DrawingHistoryItem { 
	public DrawingHistoryLine(int dx, int dy, Path path, Paint paint) {
		super(dx, dy);
		path.offset(dx, dy);
		mPath = new Path(path);
		mPaint = new Paint(paint);
	public void draw(Bitmap bm, Canvas canvas) {
		//mPath.offset(mDx, mDy); 
		canvas.drawPath(mPath, mPaint);
	public void doResize(Matrix m, float scale) {
Connect your IDE to all the code out there  Get Codota for Java