2020.1

Table Of Contents
Initialize the new Camera element with any settings that you want to be different from the
defaults.
Example: $('#myCamera').cotgPhotoWidget({quality: 50, height: 1024});
How to change the default settings is explained in another topic: "Changing default settings for
widgets" on page580.
Option Description Type Default
editimage
Allows the user to edit the image after
taking or selecting it. Which editing
options the user actually gets and how
they are presented depends on the
operating system of the device.
Boolean false
encodingtype
The returned image's file encoding: jpg or
png.
String 'jpg'
height The maximum height in pixels
Number 864
width The maximum width in pixels. Number 1152
source Which buttons are enabled: Take now
(take), Library (pick), or both
(takeandpick).
String 'takeandpick'
scaleimage Scales the image to fit the maximum width
or height. The aspect ration is maintained.
Boolean true
quality Quality of the saved image, expressed as
a range of 0-100, where 100 is full
resolution with no loss from file
compression.
Number 80
allowannotations Adds an Image & Annotation widget to
edit the picture.
Boolean false
Page 594