Difference between revisions of "Camera.start"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2017.8<br/>
+
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Start live streaming of camera images to the specified Texture.</translate>
 
<translate>Start live streaming of camera images to the specified Texture.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = camera.start(texture,device)
 
(number), (number) = camera.start(texture,device)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''texture''': (Texture) <translate>The texture to render camera stream into</translate> <br/>
 
'''texture''': (Texture) <translate>The texture to render camera stream into</translate> <br/>
 
'''device''': (string) <translate>The camera to use or nil to use the default one</translate> '''optional'''<br/>
 
'''device''': (string) <translate>The camera to use or nil to use the default one</translate> '''optional'''<br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>Nominal width of camera images</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Nominal width of camera images</translate><br/>
'''Returns''' (number) <translate>Nominal height of camera images</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>Nominal height of camera images</translate><br/>

Revision as of 07:28, 24 August 2018

Available since: Gideros 2017.8

Description

Start live streaming of camera images to the specified Texture.

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

Parameters

texture: (Texture) The texture to render camera stream into
device: (string) The camera to use or nil to use the default one optional

Return values

Returns (number) Nominal width of camera images
Returns (number) Nominal height of camera images