Manual
Copyright © Dr Robot Inc. 2008  
38
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. 
Remarks: 
1.  Before calling SavePhotoAsBMP, the TakePhoto command needs to be called to 
request image taken. 










