saveSourceScreenshot method

Future<SourceScreenshotResponse> saveSourceScreenshot(
  1. SourceScreenshot sourceScreenshot
)

Saves a screenshot of a source to the filesystem.

The imageWidth and imageHeight parameters are treated as "scale to inner", meaning the smallest ratio will be used and the aspect ratio of the original resolution is kept. If imageWidth and imageHeight are not specified, the compressed image will use the full resolution of the source.

Compatible with inputs and scenes.

  • Complexity Rating: 3/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<SourceScreenshotResponse> saveSourceScreenshot(
        SourceScreenshot sourceScreenshot) async =>
    await saveScreenshot(sourceScreenshot);