Bitbybit Docs
    Preparing search index...

    Class ScreenshotDto (Inputs.BabylonTools)

    Feeds babylon.tools.createScreenshot and createScreenshotAndDownload: the camera to render through, the image size, format and quality.

    Index

    Constructors

    • Parameters

      • Optionalcamera: Camera
      • Optionalwidth: number
      • Optionalheight: number
      • OptionalmimeType: string
      • Optionalquality: number

      Returns ScreenshotDto

    Properties

    camera?: any

    The camera to render through; left out, the active camera is used

    undefined
    

    true

    width: number

    Pixel width of the image

    1920
    

    0

    Infinity

    1

    height: number

    Pixel height of the image

    1080
    

    0

    Infinity

    1

    mimeType: string

    Image format as a MIME type, such as image/png or image/jpeg

    image/png
    
    quality: number

    Compression quality from 0 to 1 for lossy formats such as JPEG; PNG ignores it

    1
    

    0

    Infinity

    0.1