Optional
alpha?: numberOptional
antialiasing?: booleanExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
autofocusCan be used to automatically calculate camera radius
and target
, if these 2 settings are not defined
explicitely
Optional
beta?: numberCamera beta angle used for the screenshot, defaults to beta angle of currently active camera
Optional
enableExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
exclude?: ExcludedGeometryListOptional list of geometry to be excluded from consideration
Optional
fileIf file name is given, the screenshot image will be downloaded and the base64 string will NOT be returned!
Optional
height?: numberHeight of the final screenshot image, defaults to canvas height
Optional
mime"MIME type" of the returned screenshot image, defaults to image/png
Info regarding JPEG:
Use mimeType image/jpeg
(not image/jpg
) when creating jpeg's.
Also ensure that the viewer scenes clearColor
has an alpha value of 1
as jpeg's don't
support transparency. Otherwise background will always be black for jpeg's.
Optional
quality?: numberExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
radius?: numberCamera radius used for the screenshot, default value depends on autofocusScene
flag:
true
: radius is calculated automatically so that the whole current scene content is visiblefalse
: radius of currently active camera is usedOptional
radiusUsed to scale the calculated radius if radius
property is not set and autofocusScene
mode is active
Optional
renderExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
samples?: numberExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
target?: Vector3Camera target used for the screenshot, default value depends on autofocusScene
flag:
true
: center of the current scene content is set as camera targetfalse
: target of currently active camera is usedOptional
useExpert settings to tweak the screenshot image, see Babylon.js docs for further information
Optional
width?: numberWidth of the final screenshot image, defaults to canvas width
Generated using TypeDoc
Camera alpha angle used for the screenshot, defaults to alpha angle of currently active camera