Canvas.setView

Set the viewport relative to a specific ViewState

Sets a view port rectangle. This new viewport is set relative to the specified ViewState. All drawing operations are offset to the 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)
  2. void setView(ViewState state, int x0, int y0, int x1, int y1)
    class Canvas
    void
    setView
    (,
    int x0
    ,
    int y0
    ,
    int x1
    ,
    int y1
    )

Meta