ColorCaptureSourceSettings
Electron APIs / recorder / ColorCaptureSourceSettings
Settings for capturing a solid color as a source.
Extends CaptureSourceSettings with color-specific options such as color value, width, and height.
See
CaptureSourceSettings
Extends
Properties
| Property | Type | Description |
|---|---|---|
color | string | Color in #AARRGGBB format. (alpha red green blue) |
height | number | Height in pixels |
name? | string | Unique Source name (for easier identification). |
stretchToOutputSize? | boolean | Whether the capture source should be centered and stretched to fit the output video size. When set to true, the source will automatically scale and center itself to match the output resolution, even if it requires stretching. Default true (if transform is not provided). |
transform? | SourceTransformOptions | Transform options for the source. |
width | number | Width in pixels |