Progetto H — API Reference API & Scripting Documentation
Function Client Fast

SceneCapture:EncodeToBase64Async

Takes a snapshot of the SceneCapture and returns a Base64 of it (asynchronously)

Syntax

Lua
my_scene_capture:EncodeToBase64Async(image_format = ImageFormat.JPEG, callback)

Parameters

Name Type Default Description
image_format optional ImageFormat ImageFormat.JPEG Which format to generate - JPEG is fastest but discards Alpha channel
callback function Callback
Callback signature function(base_64)
  • base_64 string The base 64 content