Function
Fast
SceneCapture:EncodeToBase64Async
Takes a snapshot of the SceneCapture and returns a Base64 of it (asynchronously)
Syntax
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)
|