ObsTakeSourceScreenshotSourcesCommand constructor Null safety

ObsTakeSourceScreenshotSourcesCommand()

Implementation

ObsTakeSourceScreenshotSourcesCommand() {
  argParser
    ..addOption('source-name',
        valueHelp: 'string',
        help:
            'Source name. Note: Since scenes are also sources, you can also provide a scene name. If not provided, the currently active scene is used.')
    ..addOption('embed-picture-format',
        allowed: ['png', 'jpg', 'jpeg', 'bmp'],
        valueHelp: 'string',
        help: 'Format of the Data URI encoded picture.')
    ..addOption('save-to-file-path',
        valueHelp: 'string',
        help:
            'Full file path (file extension included) where the captured image is to be saved. Can be in a format different from pictureFormat. Can be a relative path.')
    ..addOption('file-format',
        valueHelp: 'string',
        help:
            'Format to save the image file as (one of the values provided in the supported-image-export-formats response field of GetVersion). If not specified, tries to guess based on file extension.')
    ..addOption('compression-quality',
        valueHelp: 'int',
        defaultsTo: '-1',
        help:
            'Compression ratio between -1 and 100 to write the image with. -1 is automatic, 1 is smallest file/most compression, 100 is largest file/least compression. Varies with image type.')
    ..addOption('width',
        valueHelp: 'int',
        help: 'Screenshot width. Defaults to the source\'s base width.')
    ..addOption('height',
        valueHelp: 'int',
        help: 'Screenshot height. Defaults to the source\'s base height.');
}