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.
Parameters
  • 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.
Comment
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().
  • Follow