PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → How to save Picture on Ios
How to save Picture on Ios
Débuté par Nicu, 25 jan. 2017 10:15 - 2 réponses
Posté le 25 janvier 2017 - 10:15
Hello, I use Windev mobile 18
This is not working on IOS
Can anyone tell me how i can use camera to capture picture on IOS?

sPhoto is string
sPhoto = VideoStartApp(viPictureCapture)
IF sPhoto <> "" THEN
Info("Photo saved in the file " + sPhoto)
END
Membre enregistré
19 messages
Popularité : +1 (1 vote)
Posté le 01 février 2017 - 09:35
http://doc.windev.com/en-US/…

nRecordingType is int

// Let the user choose the type of capture
IF Dialog("Do you want to save an image or a video?", ["An image", ...
"A video"], 1, 2, dlgIconQuestion) = 1 THEN
nRecordingType = viPictureCapture
ELSE
nRecordingType = viVideoCapture
END

// Starts the application
VideoStartApp(nRecordingType, CB_VideoStartApp)

INTERNAL Procedure CB_VideoStartApp(sPath is string)

// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END

// Message for end of recording
Info("The file was saved here: " + sPath)
Membre enregistré
19 messages
Popularité : +1 (1 vote)
Posté le 01 février 2017 - 11:50
Hm you use WM18, sorry