nanos world API Reference Unofficial documentation
Function Client Slow

SceneCapture:EncodeToBase64

Takes a snapshot of the SceneCapture and returns a Base64 of it

Syntax

Lua
my_scene_capture:EncodeToBase64(image_format = ImageFormat.JPEG)

Parameters

Name Type Default Description
image_format optional ImageFormat ImageFormat.JPEG Which format to generate - JPEG is fastest but discards Alpha channel

Returns

  • string