zoomr
onMouseMotion
invalidate()
onDraw
canvas.drawRect(x1,y1,x2,y2,new Paint())
onKeyDown
capture x1 and y1
onKeyUp
image.setBounds(-x1,-y1, x2+getWidth(), y2+getHeight());
onDoubleClick
Restore
invalidate()
onDraw
canvas.drawRect(x1,y1,x2,y2,new Paint())
onKeyDown
capture x1 and y1
onKeyUp
image.setBounds(-x1,-y1, x2+getWidth(), y2+getHeight());
onDoubleClick
Restore
Comments