-
17 Camera related functions (C#)
Please get C# sample program from below URL.
http://w3.tw.ute.com/pub/cs/software/Sample_Program/Camera/CameraDemo_C_Sharp.zip
17.1 Open Camera
Function Description:
Open camera and initial video resource for encoding / decoding processes. This must be called
before any other functions.
Function Call:
bool OpenCamera();
Return code:
TRUE:
Success.
FALSE:
Fail
17.2 Release Camera
Function Description:
Close camera and release video resource. This must be called after using the camera.
Function Call:
void ReleaseCamera();
17.3 Start Preview
Function Description:
Start preview within a rectangle area as given in the parameters. Using screen coordinates. Actual
displaying area can be a little smaller than the rectangle for hardware reasons. Preview is camera
real time image. This must be called before capturing image or recording video.
Function Call:
bool StartPreview(int left, int top, int width, int height);
Parameter:
left:
Left of preview position.
top:
Top of preview position.
width:
Width of preview size.
height:
Height of preview size.
Return code:
TRUE:
Success.
FALSE:
Fail.
17.4 Stop Preview
Function Description:
Finish the preview. This must be called before starting playback
Function Call:
void StopPreview();