-
Notifications
You must be signed in to change notification settings - Fork 86
uiform camera
Jonathan Chan edited this page Aug 7, 2018
·
4 revisions
The uiform camera element captures and displays a photo.
Parameter | Default | Description |
---|---|---|
filename | #f | JPEG image filename. |
display | #t | Whether to display the image in the space below after the photo is taken. |
archive | #f | Whether to save the image with the given filename. |
scale | 0.8 | Width of the displayed image relative to the width of the widget |
high-quality | #t | Whether to use a higher-quality but slower scaling algorithm or a lower-quality but faster one when displaying the image. Note that this does not affect the quality of the image that is saved when archive is #t . The higher-quality scaling algorithm may take up to ten seconds for a 12 MP photo. |
default | "Take photo" | Text in blank image space before photo is taken. |
defaultcomplete | "Photo taken. Tap here to take a different photo" | Text in blank image space after photo is taken if photo is not displayed. |
Example 1: A complete page definition of a camera page from LNhealth's apps/WidgetDemo
(ex_camera
"Camera"
("Prev" ex_modal)
("Next" ex_barcodes)
(spacer)
(label text "Touch below to take photo:")
(spacer)
(camera filename "test.png" default "photo here")
(spacer)
)
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip