Difference between revisions of "Camera"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Barrymavin (Talk | contribs) (→Properties) |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width="20%"|Property | !width="20%"|Property | ||
− | |||
!Value | !Value | ||
+ | !Access (R/RW) | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
+ | |camera||Character||(R)||Returns the currently selected cameras | ||
+ | |- | ||
+ | |list||Character||(R)||Returns a comma separated list of available cameras | ||
|} | |} | ||
Line 24: | Line 27: | ||
!Args | !Args | ||
!width="50%"|Description | !width="50%"|Description | ||
+ | |- | ||
+ | |valign="top"|getPhoto | ||
+ | |valign="top"|filename as character | ||
+ | |valign="top"|get a photo | ||
+ | |- | ||
+ | |valign="top"|start | ||
+ | |valign="top"|None | ||
+ | |valign="top"|Start the camera. | ||
|- | |- | ||
|valign="top"|stop | |valign="top"|stop | ||
Line 31: | Line 42: | ||
|valign="top"|takePhoto | |valign="top"|takePhoto | ||
|valign="top"|None | |valign="top"|None | ||
− | |valign="top"|Take a photo. | + | |valign="top"|Take a photo. Stores it in photo.png in the current directory. |
|- | |- | ||
|} | |} |
Latest revision as of 21:32, 7 March 2024
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Control to use the webcam on your machine to capture and store images.
Properties
This class supports the Common Properties plus the following:
Property | Value | Access (R/RW) | Description |
---|---|---|---|
camera | Character | (R) | Returns the currently selected cameras |
list | Character | (R) | Returns a comma separated list of available cameras |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
getPhoto | filename as character | get a photo |
start | None | Start the camera. |
stop | None | Stop the camera. |
takePhoto | None | Take a photo. Stores it in photo.png in the current directory. |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|