API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICAMERA_ADDOVERLAY()

Brew Release
Brew MP 1.0.2
See Also
ICAMERA_SetParm() ICAMERA_ClearOverlay()
Description
This function sets the overlay image that will be part of the recorded picture. This operation is done any camera mode.
Params
pICamera
[]:
Pointer to ICamera Interface.
pb
[]:
Pointer to IBitmap representing the overlay
Interface
  • ICAMERA
Prototype
  •     int ICAMERA_AddOverlay
        (
           ICamera * pICamera,
           IBitmap * pb
        )
    
Return
  • SUCCESS: Successful. Synchronous operation completed. CAM_PENDING: Asynchronous Operation. Result is passed back to the application via the registered callback EBADPARM: Bad parameter is passed ENOMEMORY: Not enough memory EBADSTATE: Cannot execute operation because the camera is in the wrong mode. EUNSUPPORTED: Parameter is not supported EFAILED: General failure
Side Effect
  • None.
Comments
This function may be synchronous or asynchronous depending on the values passed in. You can add overlays on top of another image by calling this function repeatedly with different images. To clear ALL overlays, call ICAMERA_ClearOverlay().