Canvas.setView

Set the viewport.

Sets a view port rectangle. This new viewport is set relative to the current viewport. All drawing operations are offset to the new viewport.

The clip rectangle is shrunk to the intersection of the new viewport and the current clip rectangle.

  1. void setView(int x0, int y0, int x1, int y1)
    class Canvas
    void
    setView
    (
    int x0
    ,
    int y0
    ,
    int x1
    ,
    int y1
    )
  2. void setView(ViewState state, int x0, int y0, int x1, int y1)

Meta