-
17.5 Get transparent color key
Function Description:
Get which color is transparent of display context. The transparent pixels will be replaced by camera
image.
Function Call:
int GetColorKey();
Return code:
The color key is described by ARGB value.
17.6 Capture Image
Function Description:
Capture a photo with the specified resolution and store in JPEG file format. This must be called
within StartPreview() and StopPreview().
Function Call:
bool CaptureImage(string filename, int width, int height);
Parameter:
filename: Storing
path.
width:
Width of resolution.
height:
Height of resolution.
Return code:
TRUE:
Success.
FALSE:
Fail.
17.7 Start Capture Video
Function Description:
Start video capturing with the specified resolution and frame rate. This will record video in “m4v” file
format continuously until called EndVideoCapture(). This must be called within StartPreview() and
StopPreview().
Function Call:
bool StartVideoCapture(string filename, int width, int height,int fps);
Parameter:
filename: Storing
path.
width:
Width of resolution.
height:
Height of resolution.
fps:
Frame rate of recording video.
Return code:
TRUE:
Success.
FALSE:
Fail.