PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Implementation
  • Managing thumbnails
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
If your Android or iOS device is equipped with a Video Camera feature, you have the ability to control the video camera from your Android or iOS application. This allows you to view and/or take snapshots or video sequences.
Versions 21 and later
Note: The Camera control can also be used to decode the bar codes. For more details, see: Camera control: decoding the bar codes.
New in version 21
Note: The Camera control can also be used to decode the bar codes. For more details, see: Camera control: decoding the bar codes.
Note: The Camera control can also be used to decode the bar codes. For more details, see: Camera control: decoding the bar codes.
Implementation
To handle the video camera found on an Android or iOS device, you can::
Android

Managing thumbnails

If photos must be used in Android applications, we advise you to work with miniatures and not with the initial photos taken by the device. These thumbnails can be generated by VideoGenerateThumbnail. If photos must be used in Android applications, we advise you to work with miniatures and not with the initial photos taken by the device. These thumbnails can be generated by VideoGenerateThumbnail (or CameraGenerateMiniature).
This example is used to take photos and to generate a thumbnail (with the Videoxxx functions).
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
Related Examples:
WM Expense Account Cross-platform examples (WINDEV Mobile): WM Expense Account
[ + ] This example allows you to manage your fees.

Let's see the main features of this application:
- The input of invoices
- Management of foreign currencies
- Inclusion of photo document for the invoices
- Ability to email the expense account
- Ability to track the expense accounts
- ...
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment