Tanoda
DeviceCamera Class Reference

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]
 

Detailed Description

Definition at line 4 of file DeviceCamera.cs.

Constructor & Destructor Documentation

◆ DeviceCamera() [1/2]

DeviceCamera.DeviceCamera ( bool  isUseEWC = true)

Definition at line 32 of file DeviceCamera.cs.

◆ DeviceCamera() [2/2]

DeviceCamera.DeviceCamera ( int  width,
int  height,
bool  isUseEWC = true 
)

Definition at line 57 of file DeviceCamera.cs.

Member Function Documentation

◆ GetPixels() [1/2]

Color[] DeviceCamera.GetPixels ( )

get the Pixels of the camera image

Returns
The pixels.

Definition at line 239 of file DeviceCamera.cs.

◆ GetPixels() [2/2]

Color[] DeviceCamera.GetPixels ( int  x,
int  y,
int  targetWidth,
int  targetHeight 
)

get the pixels of the camera image by using the target rect range

Returns
The pixels.
Parameters
xThe x coordinate.
yThe y coordinate.
targetWidthTarget width.
targetHeightTarget height.

Definition at line 264 of file DeviceCamera.cs.

◆ GetPixels32()

Color32[] DeviceCamera.GetPixels32 ( )

Gets the pixels32 of the camera

Returns
The pixels32.

Definition at line 285 of file DeviceCamera.cs.

◆ getSize()

Vector2 DeviceCamera.getSize ( )

Gets the size of the webcam

Returns
The size.

Definition at line 159 of file DeviceCamera.cs.

◆ Height()

int DeviceCamera.Height ( )

get the height of the camera

Definition at line 197 of file DeviceCamera.cs.

◆ isPlaying()

bool DeviceCamera.isPlaying ( )

get status of the camera

Returns
true, if playing was ised, false otherwise.

Definition at line 218 of file DeviceCamera.cs.

◆ Play()

void DeviceCamera.Play ( )

open the camera

Definition at line 89 of file DeviceCamera.cs.

◆ Stop()

void DeviceCamera.Stop ( )

Stop this camera.

Definition at line 134 of file DeviceCamera.cs.

◆ Width()

int DeviceCamera.Width ( )

get the width of the camera

Definition at line 178 of file DeviceCamera.cs.

Property Documentation

◆ preview

Texture DeviceCamera.preview
get

Definition at line 6 of file DeviceCamera.cs.


The documentation for this class was generated from the following file: