texture_encode_canvas
Returns a binary of the image used by a texture in the specified format.
arguments
- "format" : String (default: "jpg")
The image format to encode the image to.
- "pixel_type" : String (default: "Rgb")
The pixel type used when encoding.
- "quality" : String (default: "90")
The quality used when encoding the image if supported by the format.
- "texture_name" : String
The name of an existing Texture element in the database to output.
return value
BinaryThe encoded image.