Difference between revisions of "Camera.start"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Start live streaming of camera images to the specified Texture. <source lang="lua"> (number) (number),...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2017.8<br/> | '''Available since:''' Gideros 2017.8<br/> | ||
+ | '''Class:''' [[camera]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Starts live streaming of camera images to the specified Texture. | |
− | < | + | <syntaxhighlight lang="lua"> |
− | (number) (number), = camera.start( | + | (number), (number), (number), (number) = camera.start(texture,device,pictureWidth,pictureHeight) |
− | </ | + | </syntaxhighlight> |
− | '''texture | + | |
− | '''device | + | === Parameters === |
− | '''Returns''' (number) | + | '''texture''': (Texture) the texture to render camera stream into<br/> |
− | '''Returns''' (number) | + | '''device''': (string) the camera to use or nil to use the default one '''optional'''<br/> |
+ | '''pictureWidth''': (number) the required width of pictures or 0 if takePicture() isn't used '''optional'''<br/> | ||
+ | '''pictureHeight''': (number) the required height of pictures or 0 if takePicture() isn't used '''optional'''<br/> | ||
+ | |||
+ | === Return values === | ||
+ | '''Returns''' (number) nominal width of camera images<br/> | ||
+ | '''Returns''' (number) nominal height of camera images<br/> | ||
+ | '''Returns''' (number) selected width of taken pictures<br/> | ||
+ | '''Returns''' (number) selected height of taken pictures<br/> | ||
+ | |||
+ | {{Camera}} |
Latest revision as of 14: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