Class TakeSourceScreenshot.Builder

    • Method Detail

      • getSourceName

        public Optional<String> getSourceName()
        Source name. Note: Since scenes are also sources, you can also provide a scene name. If not provided, the currently active scene is used.
      • setSourceName

        public void setSourceName​(String sourceName)
        Source name. Note: Since scenes are also sources, you can also provide a scene name. If not provided, the currently active scene is used.
      • getEmbedPictureFormat

        public Optional<String> getEmbedPictureFormat()
        Format of the Data URI encoded picture. Can be "png", "jpg", "jpeg" or "bmp" (or any other value supported by Qt's Image module)
      • setEmbedPictureFormat

        public void setEmbedPictureFormat​(String embedPictureFormat)
        Format of the Data URI encoded picture. Can be "png", "jpg", "jpeg" or "bmp" (or any other value supported by Qt's Image module)
      • getSaveToFilePath

        public Optional<String> getSaveToFilePath()
        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.
      • setSaveToFilePath

        public void setSaveToFilePath​(String saveToFilePath)
        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.
      • getFileFormat

        public Optional<String> getFileFormat()
        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.
      • setFileFormat

        public void setFileFormat​(String fileFormat)
        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.
      • getCompressionQuality

        public Optional<Integer> getCompressionQuality()
        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.
      • setCompressionQuality

        public void setCompressionQuality​(int compressionQuality)
        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.
      • getWidth

        public Optional<Integer> getWidth()
        Screenshot width. Defaults to the source's base width.
      • setWidth

        public void setWidth​(int width)
        Screenshot width. Defaults to the source's base width.
      • getHeight

        public Optional<Integer> getHeight()
        Screenshot height. Defaults to the source's base height.
      • setHeight

        public void setHeight​(int height)
        Screenshot height. Defaults to the source's base height.