ScreenshotOptions Properties |
The ScreenshotOptions type exposes the following members.
Properties | Name | Description |
---|
| BaseUrl |
Gets and sets base URL when converting HTML string. All assets such as CSS, JavaScript files and images will be loaded relative to that base URL. Default: null. (For example, "https://example.com", "d:\my webs\").
|
| ChromiumBaseDirectory |
Gets and sets a custom directory where will be placed portable Chromium browser. Default value depends of platform (win-x64, win-86, linux-x64 or osx-x64)Current directory\runtimes\win-x64\native\.
|
| ChromiumRevision |
Gets and sets the Chromium revision. Defaults: Windows - "1115623", Linux - "1115563", MacOs - "1115611".
|
| Clip |
Specifies clipping region of the page. Default: null.
|
| FullPage |
When true, takes a screenshot of the full scrollable page. Default: true.
|
| OmitBackground |
Hides default white background and allows capturing screenshots with transparency. Default: false.
|
| Quality |
The quality of the image (only for JPEG), between 0-100. Not applicable to PNG images. Default: null.
|
| Type |
Specify screenshot type, can be either jpeg or png. Default: Png.
|
| ViewPortOptions |
Gets or sets browser Width and Height and some other options. Default: 1920x1080.
|
TopSee Also