Optional backgroundIf set, the background will be set to the given color. If unspecified, the default background will be used.
The format of the raster data.
Optional edgeWhat algorithm should we use when displaying edges ?
true: Export2DEdgeDetectType.EDT_ObjectIdsAndFeatures.
false: Export2DEdgeDetectType.EDT_None.
Optional flatShould we use a flat lighting model, meaning pixel color is not impacted by normal vector of model ?. Defaults to false.
Optional includeIf set, the result will also include a separate buffer with the geometric instance id of each pixel.
Optional itemThe subItem name in case of a multi export.
Optional qualityThe quality of the compression. Using a webp format with a 100 quality will result in a lossless compression. This value is ignored with png formats.
The resolution of the final image.
Optional supersamplingIf super-sampling is set, then the image will use the given anti-aliasing super-sampling size.
The viewpoint to use.
The Export2DOutputFormatInterfaceItem interface defines a subitem inside the output format of a 2D export procedure called by DataSessionInterface.export2D.
or asynchronously :
Please make sure the destination browser supports promises before using async calls.
See