Class Viewport

java.lang.Object
io.webfolder.cdp.type.page.Viewport

public class Viewport extends Object
Viewport for capturing screenshot
  • Constructor Details

    • Viewport

      public Viewport()
  • Method Details

    • getX

      public Double getX()
      X offset in device independent pixels (dip).
    • setX

      public void setX(Double x)
      X offset in device independent pixels (dip).
    • getY

      public Double getY()
      Y offset in device independent pixels (dip).
    • setY

      public void setY(Double y)
      Y offset in device independent pixels (dip).
    • getWidth

      public Double getWidth()
      Rectangle width in device independent pixels (dip).
    • setWidth

      public void setWidth(Double width)
      Rectangle width in device independent pixels (dip).
    • getHeight

      public Double getHeight()
      Rectangle height in device independent pixels (dip).
    • setHeight

      public void setHeight(Double height)
      Rectangle height in device independent pixels (dip).
    • getScale

      public Double getScale()
      Page scale factor.
    • setScale

      public void setScale(Double scale)
      Page scale factor.