Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for screenshot methods with describe argument called size as object with options

link

https://doc.babylonjs.com/api/classes/babylon.screenshottools

Hierarchy

  • IScreenshotSize

Index

Properties

finalHeight?: number

Height of the final screenshot image. If only one of the two values is provided, the other will be calculated based on the camera's aspect ratio. If both finalWidth and finalHeight are not provided, width and height will be used instead finalWidth and finalHeight are used only by CreateScreenshotUsingRenderTarget, not by CreateScreenshot!

finalWidth?: number

Width of the final screenshot image. If only one of the two values is provided, the other will be calculated based on the camera's aspect ratio. If both finalWidth and finalHeight are not provided, width and height will be used instead. finalWidth and finalHeight are used only by CreateScreenshotUsingRenderTarget, not by CreateScreenshot!

height?: number

number in pixels for canvas height. It is the height of the texture used to render the scene

precision?: number

multiplier allowing render at a higher or lower resolution If value is defined then width and height will be multiplied by this value

width?: number

number in pixels for canvas width. It is the width of the texture used to render the scene

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme