|
|
|
|
|
CameraPhoto (Function) In french: CaméraPhoto Captures a photo via a Camera control in an Android or iOS application. The photo is saved in the application's default directory, or in the directory specified with the WorkingDirectory property. The different options specified for the Camera control (flash, back or front camera, etc.) are taken into account. Note: This function can only be used with a Camera field in version 27 or higher (the field must not have the "Mode compatible 26" option ticked in the "General" tab of the field description window). CameraPhoto(CAM_MaCaméra, CaméraPhoto_Callback)
INTERNAL PROCEDURE CaméraPhoto_Callback(bRéussite is boolean, CheminPhoto is string)
IF bRéussite = True THEN
IMG_PHOTO = CheminPhoto
LIB_CHEMIN_PHOTO = CheminPhoto
MyWindow.Plan = 3
ELSE
ToastDisplay("Erreur lors de la prise de photo." + CR + ErrorInfo())
END
END
Syntax
CameraPhoto(<Camera control> , <WLanguage procedure>)
<Camera control>: Control name Name of the Camera control that will capture the photo. <WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when the photo is saved. For more details on this procedure, see Parameters of the procedure used by CameraPhoto.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Photos
[ + ] This Android/iOS example is used to take photos and to save them by specifying a title and keywords. A search is also available. The photos are stored in the application directory, therefore they are private (not visible by other applications).
|
Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|