Difference between revisions of "Camera.start"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Starts live streaming of camera images to the specified Texture.
 
Starts live streaming of camera images to the specified Texture.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number), (number) = camera.start(texture,device,pictureWidth,pictureHeight)
 
(number), (number), (number), (number) = camera.start(texture,device,pictureWidth,pictureHeight)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:26, 13 July 2023

Available since: Gideros 2017.8
Class: camera

Description

Starts live streaming of camera images to the specified Texture.

(number), (number), (number), (number) = camera.start(texture,device,pictureWidth,pictureHeight)

Parameters

texture: (Texture) the texture to render camera stream into
device: (string) the camera to use or nil to use the default one optional
pictureWidth: (number) the required width of pictures or 0 if takePicture() isn't used optional
pictureHeight: (number) the required height of pictures or 0 if takePicture() isn't used optional

Return values

Returns (number) nominal width of camera images
Returns (number) nominal height of camera images
Returns (number) selected width of taken pictures
Returns (number) selected height of taken pictures