uiform camera - part-cw/lambdanative GitHub Wiki
(label . camera)
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
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)
)