ImagePicker
Definition
A special-purpose button. When the user taps an ImagePicker
, the device’s image gallery appears, and the user can choose an image. After an image is picked, it is saved, and the Selection
property will be the name of the file where the image is stored. In order to not fill up storage, a maximum of 10 images will be stored. Picking more images will delete previous images, in order from oldest to newest.
Properties
- BackgroundColor
- Specifies the
ImagePicker
’s background color as an alpha-red-green-blue integer. If anImage
has been set, the color change will not be visible until theImage
is removed. - Enabled
- Specifies whether the
ImagePicker
should be active and clickable. - FontBold
- Specifies whether the text of the
ImagePicker
should be bold. Some fonts do not support bold. - FontItalic
- Specifies whether the text of the
ImagePicker
should be italic. Some fonts do not support italic. - FontSize
- Specifies the text font size of the
ImagePicker
, measured in sp(scale-independent pixels). - FontTypeface
- Specifies the text font face of the
ImagePicker
as default, serif, sans serif, or monospace. - Height
- Specifies the
ImagePicker
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
ImagePicker
’s vertical height as a percentage of theScreen
’sHeight
. - Image
- Specifies the path of the
ImagePicker
’s image. If there is both anImage
and aBackgroundColor
specified, only theImage
will be visible. - Selection
- Path to the file containing the image that was selected.
- Shape
- Specifies the shape of the
ImagePicker
. The valid values for this property are0
(default),1
(rounded),2
(rectangle), and3
(oval). TheShape
will not be visible if anImage
is used. - ShowFeedback
- Specifies if a visual feedback should be shown when a
ImagePicker
with an assignedImage
is pressed. - Text
- Specifies the text displayed by the
ImagePicker
. - TextAlignment
- Specifies the alignment of the
ImagePicker
’s text. Valid values are:0
(normal; e.g., left-justified if text is written left to right),1
(center), or2
(opposite; e.g., right-justified if text is written left to right). - TextColor
- Specifies the text color of the
ImagePicker
as an alpha-red-green-blue integer. - Visible
- Specifies whether the
ImagePicker
should be visible on the screen. Value istrue
if theImagePicker
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
ImagePicker
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
ImagePicker
as a percentage of theScreen
’sWidth
.