public class ScreenshotOptions extends Object
| 构造器和说明 |
|---|
ScreenshotOptions() |
ScreenshotOptions(ImageType type,
Double quality,
boolean optimizeForSpeed,
boolean fromSurface,
boolean omitBackground,
boolean fullPage,
String path,
ScreenshotClip clip,
String encoding,
boolean captureBeyondViewport) |
ScreenshotOptions(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getCaptureBeyondViewport() |
ScreenshotClip |
getClip() |
String |
getEncoding() |
boolean |
getFromSurface() |
boolean |
getFullPage() |
boolean |
getOmitBackground() |
boolean |
getOptimizeForSpeed() |
String |
getPath() |
Double |
getQuality() |
ImageType |
getType() |
void |
setCaptureBeyondViewport(boolean captureBeyondViewport) |
void |
setClip(ScreenshotClip clip) |
void |
setEncoding(String encoding) |
void |
setFromSurface(boolean fromSurface) |
void |
setFullPage(boolean fullPage) |
void |
setOmitBackground(boolean omitBackground) |
void |
setOptimizeForSpeed(boolean optimizeForSpeed) |
void |
setPath(String path) |
void |
setQuality(Double quality) |
void |
setType(ImageType type) |
public ScreenshotOptions()
public ScreenshotOptions(String path)
public ScreenshotOptions(ImageType type, Double quality, boolean optimizeForSpeed, boolean fromSurface, boolean omitBackground, boolean fullPage, String path, ScreenshotClip clip, String encoding, boolean captureBeyondViewport)
public boolean getOptimizeForSpeed()
public void setOptimizeForSpeed(boolean optimizeForSpeed)
public boolean getFromSurface()
public void setFromSurface(boolean fromSurface)
public boolean getCaptureBeyondViewport()
public void setCaptureBeyondViewport(boolean captureBeyondViewport)
public ImageType getType()
public void setType(ImageType type)
public String getPath()
public void setPath(String path)
public boolean getFullPage()
public void setFullPage(boolean fullPage)
public ScreenshotClip getClip()
public void setClip(ScreenshotClip clip)
public Double getQuality()
public void setQuality(Double quality)
public boolean getOmitBackground()
public void setOmitBackground(boolean omitBackground)
public String getEncoding()
public void setEncoding(String encoding)
Copyright © 2020–2025. All rights reserved.