Tanoda
|
Public Member Functions | |
DeviceCamera (bool isUseEWC=true) | |
DeviceCamera (int width, int height, bool isUseEWC=true) | |
void | Play () |
open the camera More... | |
void | Stop () |
Stop this camera. More... | |
Vector2 | getSize () |
Gets the size of the webcam More... | |
int | Width () |
get the width of the camera More... | |
int | Height () |
get the height of the camera More... | |
bool | isPlaying () |
get status of the camera More... | |
Color[] | GetPixels () |
get the Pixels of the camera image More... | |
Color[] | GetPixels (int x, int y, int targetWidth, int targetHeight) |
get the pixels of the camera image by using the target rect range More... | |
Color32[] | GetPixels32 () |
Gets the pixels32 of the camera More... | |
Properties | |
Texture | preview [get] |
Definition at line 4 of file DeviceCamera.cs.
DeviceCamera.DeviceCamera | ( | bool | isUseEWC = true | ) |
Definition at line 32 of file DeviceCamera.cs.
DeviceCamera.DeviceCamera | ( | int | width, |
int | height, | ||
bool | isUseEWC = true |
||
) |
Definition at line 57 of file DeviceCamera.cs.
Color[] DeviceCamera.GetPixels | ( | ) |
get the Pixels of the camera image
Definition at line 239 of file DeviceCamera.cs.
Color[] DeviceCamera.GetPixels | ( | int | x, |
int | y, | ||
int | targetWidth, | ||
int | targetHeight | ||
) |
get the pixels of the camera image by using the target rect range
x | The x coordinate. |
y | The y coordinate. |
targetWidth | Target width. |
targetHeight | Target height. |
Definition at line 264 of file DeviceCamera.cs.
Color32[] DeviceCamera.GetPixels32 | ( | ) |
Gets the pixels32 of the camera
Definition at line 285 of file DeviceCamera.cs.
Vector2 DeviceCamera.getSize | ( | ) |
int DeviceCamera.Height | ( | ) |
get the height of the camera
Definition at line 197 of file DeviceCamera.cs.
bool DeviceCamera.isPlaying | ( | ) |
get status of the camera
true
, if playing was ised, false
otherwise.Definition at line 218 of file DeviceCamera.cs.
void DeviceCamera.Play | ( | ) |
open the camera
Definition at line 89 of file DeviceCamera.cs.
void DeviceCamera.Stop | ( | ) |
Stop this camera.
Definition at line 134 of file DeviceCamera.cs.
int DeviceCamera.Width | ( | ) |
get the width of the camera
Definition at line 178 of file DeviceCamera.cs.
|
get |
Definition at line 6 of file DeviceCamera.cs.