AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de video
  • Taking photos with thumbnail
VideoGenerateThumbnail (Example)
Taking photos with thumbnail
This example is used to take photos and to generate a thumbnail.
Reminder: If photos must be used in Android applications, we advise you to work with thumbnails and not with the initial photos taken by the device.
sImageFile is string
sThumbnail is string
 
// Takes a photo with the camera of the Android device
sImageFile = VideoStartApp(viVideoCapture)
IF sImageFile = "" THEN
Error("Unable to take the photo. ", ErrorInfo())
RETURN
END
 
// Generates a thumbnail from the photo taken by the device
// and displays the thumbnail in an Image control
sThumbnail = fExtractPath(sImageFile, fDrive + fDirectory + fFileName) + "_thumb.jpg"
IF VideoGenerateThumbnail(sImageFile, sThumbnail) = True THEN
IMG_Photo = sThumbnail
ELSE
Error("Unable to generate the thumbnail.", ErrorInfo())
END
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local