User manual
Copyright © Dr Robot Inc. 2005
62
120 void StopRecord();
Description:
StopRecord sends stop-recording command to the Multimedia Controller (PMB5010).
SDK will not send recorded voice data to PC any more.
Syntax: StopRecord();
Parameter: void
Return value: void
Remarks:
There will be no effect if the Multimedia Controller is not recording.
IV.1.2 Image Capturing
121 void TakePhoto();
Description:
TakePhoto sends image capturing command to the Multimedia Controller (PMB5010). The
Multimedia Controller will send back the latest frame of the image data to the WiRobot
shared memory after receiving TakePhoto command. Use SavePhotoAsBMP to obtain the
image.
Syntax: TakePhoto();
Parameter: void
Return value: void
Remarks:
Each TakePhoto command will get one frame of image.
122 BOOL SavePhotoAsBMP(LPCTSTR FileName);
Description:
SavePhotoAsBMP saves current frame of image data into BMP format file
FileName.
Syntax: bVal = SavePhotoAsBMP (FileName);
Parameter: LPCTSTR FileName; // the file name with full path, for saving image
data in bmp format.
Return value: BOOL bVal; // True: success
// False: failure to save.