Methods
clipRectangle(clipRectangle) → {CaptureScreenshotParameters}
Sets the clip rectangle for capturing a screenshot.
Parameters:
Name | Type | Description |
---|---|---|
clipRectangle | BoxClipRectangle | | The clip rectangle to set. |
Throws:
If the clipRectangle is not an instance of ClipRectangle.
- Type
- Error
Returns:
- The current instance of the CaptureScreenshotParameters for chaining.
imageFormat(type, qualityopt) → {CaptureScreenshotParameters}
Sets the image format and quality for capturing a screenshot.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type | string | The image format type. | |
quality | number | <optional> | The image quality (optional). |
Throws:
If the type is not a string or if the quality is not a number.
- Type
- Error
Returns:
- The current instance of the CaptureScreenshotParameters for chaining.
origin(origin) → {CaptureScreenshotParameters}
Sets the origin for capturing the screenshot.
Parameters:
Name | Type | Description |
---|---|---|
origin | Origin | The origin for capturing the screenshot. Must be one of |
Throws:
- If the provided origin is not valid.
- Type
- Error
Returns:
- The current instance of the CaptureScreenshotParameters for chaining.