Image Picker

Image Picker

Download PDF

Image Picker

An image picker control manages user interactions and delivers the results of those interactions. Image picker allows you to pick or select multiple images from the camera roll / gallery within your app.


With Configure.IT, you can even capture images using your device within this control. You can even edit or crop the image captured. It also lets you record a video and provides you many more exquisite features to use.

    Keywords:
  • image editor
  • image picker
  • video recorder
  • capturing image
  • image selector

Properties

  • Display/Text
    PARAMETER
    DESCRIPTION
    Font Family

    Select and set the Font type as desired, from the list of available options.

    Font Size

    Sets the desired size of the Font.

    Custom Font Name

    Here you can display your custom font name in the given text area.

    Line Break Mode

    The technique to use for wrapping and truncating the picker button’s title.

  • Custom Border
    PARAMETER
    DESCRIPTION
    Border Width

    Sets border width for a Image Picker.

    Border Corner Radius

    Sets radius with which control's rounded corners should be drawn. Setting this property will enable control appear with rounded corners.

    Border Color

    Sets the border color for a control. Works only if "Border Width" property is set to a value more than 0. Default would be black color.

    Dash Width For Dashed Border

    Sets width of each dash in dashed border pattern for a Image Picker.

    Space Between Dashes For Dashed Border

    Helps set the spacing between Dashes for Dashed Border.

    Transform Angle

    Sets angle in degrees to which the Image Picker which is in its normal state, has to be rotated. Possible values for this property are -360 to 360.

  • Display
    PARAMETER
    DESCRIPTION
    Enabled

    A Boolean property that indicates whether the gesture recognizer is enabled.

    Selected

    A Boolean value that changes picker button’s state to "selected".

    Button State

    Set the state of Button to either of the following; normal, highlighted, selected or disabled.

    Highlighted

    A Boolean value that changes picker button’s state to "highlighted".

    Selected Title
    Sets the title to use for the Selected state.
    Disabled Title
    Sets the title to use for the disabled state.
    Normal Title

    Sets the title to be used as the default state.

    Highlighted Title
    Sets the title to use for the Highlighted state.
    Normal Title Color

    Sets the color for the title to be used for the Normal state.

    Highlighted Title Color
    Sets the color for the title to use for the Highlighted state.
    Disabled Title Color
    Sets the color for the title to use for the disabled state.
    Selected Title Color
    Sets the color for the title to use for the Selected state.
    Disabled Title Shadow Color
    Sets the shadow color for the title to use for the disabled state.
    Selected Title Shadow Color
    Sets the shadow color for the title to use for the Selected state.
    Highlighted Title Shadow Color
    Sets the shadow color for the title to use for the Normal state.
    Normal Title Shadow Color

    Sets the shadow color for the title to use for the Highlighted state.

    Disabled Image
    Sets the Image to use for the disabled state.
    Highlighted Image
    Set the image to the Object in Highlighted State
    Selected Image
    Sets the Image to use for the Selected state.
    Normal Image

    Sets the Image to use for the Normal state.

    Disabled Background Image
    Sets the Background Image to use for the disabled state.
    Highlighted Background Image
    Sets the Background Image to use for the Highlighted state.
    Selected Background Image
    Sets the Background Image to use for the Selected state.
    Normal Background Image

    Sets the Background Image to use for the Normal state.

    Content Horizontal Alignment

    Sets the horizontal alignment for content (text or image or both) of picker button.

    Content Vertical Alignment

    Sets the vertical alignment for content (text or image or both) of picker button.

    User Interaction Enabled

    Enables the Interaction with user, i.e. control responds when user taps on it.

    Alpha

    Used to set the transparency to the object which ranges from 0 to 1.

    Background Color

    Used to set the background color to the Image Picker button.

    Tint Color

    Sets tint color for Image Picker button.

    Drawable Type

    Adjusts the position of Image in sync with the Text.

    Drawable Padding

    Padding is defined as space between the edges of the view and the view's content. Drawable Padding is the padding between the drawables and the text. Sets the padding, in pixels, of all four edges.

  • Advanced
    PARAMETER
    DESCRIPTION
    Title Shadow Offset X

    The horizontal offset of the shadow used to display the button’s title. Positive value always extend to the right from the user's perspective.

    Title Shadow Offset Y

    The vertical offset of the shadow used to display the button’s title. Positive value always extend up from the user's perspective.

    Reverses Title Shadow When Highlighted

    If checked the checkbox, the picker button title shadow changes from engrave to emboss appearance when highlighted.

    Shows Touch When Highlighted

    A Boolean value that determines whether tapping the Image Picker button causes it to glow.

    Adjusts Image When Highlighted

    A Boolean value that determines whether the image changes when the Image Picker button is highlighted.

    Adjusts Image When Disabled

    A Boolean value that determines whether the image changes when the Image Picker button is disabled.

    Edge

    Sets the edge inset properties for the content within the button separately. i.e, there are three possible contents of button - Title, Image or Content (both image and title included). Whereas there are 4 edge properties which can be set separately for each content type.

    Top Title Edge Insets

    Sets the inset or outset top margin for the button title. A positive value shrinks, or insets, top edge-moving it closer to the center of the button. A negative value expands, or outsets, top edge-moving it away from center of the button.

    Top Content Edge Insets
    The inset or outset margins for the rectangle surrounding top of the object's content.
    Top Image Edge Insets
    The inset or outset margins for the rectangle surrounding top of the object's image.
    Bottom Title Edge Insets

    Sets the inset or outset bottom margin for the button title. A positive value shrinks, or insets, bottom edge-moving it closer to the center of the button. A negative value expands, or outsets, bottom edge-moving it away from center of the button.

    Bottom Content Edge Insets
    The inset or outset margins for the rectangle surrounding bottom of the object's content.
    Bottom Image Edge Insets
    The inset or outset margins for the rectangle surrounding bottom of the object's image.
    Left Title Edge Insets

    Sets the inset or outset left margin for the button title. A positive value shrinks, or insets, left edge-moving it closer to the center of the button. A negative value expands, or outsets, left edge-moving it away from center of the button.

    Left Content Edge Insets
    The inset or outset margins for the rectangle surrounding left of the object's content.
    Left Image Edge Insets
    The inset or outset margins for the rectangle surrounding left of the object's image.
    Right Content Edge Insets
    The inset or outset margins for the rectangle surrounding right of the object's content.
    Right Image Edge Insets
    The inset or outset margins for the rectangle surrounding right of the object's image.
    Right Title Edge Insets

    Sets the inset or outset right margin for the button title. A positive value shrinks, or insets, right edge-moving it closer to the center of the button. A negative value expands, or outsets, right edge-moving it away from center of the button.

  • CIT Custom Properties
    PARAMETER
    DESCRIPTION
    From Camera

    Enabling this property gives you an option to capture Image using your device.

    From Gallery

    It helps you fetch Image from the photo Album or the photo Gallery of your device when you allow access to the Album.

    From Camera

    Enabling this property gives you an option to capture Video recording using your device.

    From Gallery

    This property is for enabling video selection from device gallery.

    From Gallery

    This property is for enabling audio files or image selection.

    Enable Image Cropping

    This property is for enabling cropping for selected image.

    Enable Image Editing

    This property lets you edit your Image as per the default device options / features.

    Video Quality

    This property is used to set the quality of image while capturing.

    Image Size For Post

    This property is for setting cropping size. The selected image will be cropped to the size set in this property. Size should be set in format {width,height} e.g, "100,100".

    Camera Mode

    This property is for setting camera mode for image picker control. You can select from following options : - 1) Rear 2) Front

    Place Holder Image

    Set dummy image to display while image data is being received from web server.

    Transform Angle For Selected State

    This property is for setting angle in degrees to which control in its selected state has to be rotated. Possible values for this property are -360 to 360.

    Local Image Folder Name

    This property is for setting image path if image is already downloaded. e.g /Documents/Profile Images/

  • Object
    PARAMETER
    DESCRIPTION
    Xpos

    Sets the X position of the Image Picker.

    YPos

    Sets the Y position of the Image Picker.

    Width

    Sets the width of the Image Picker.

    Height

    Sets the height of the Image Picker.

    Object ID

    Sets unique identifier for the control. Control can be referenced with name set in this property for configuration.

    Object Parent ID

    Set "Object ID" of Image Picker which contains this control or can serve as parent.

    Key Name To Data

    Sets the web service key from data received from web server, which corresponds to the value to be displayed on the control.

    Image Picker Image Receiver Id

    This property is for setting "Object ID" of control on which selected image has to be shown.

  • Vertical
    PARAMETER
    DESCRIPTION
    Vertical Group

    Group of vertical android default properties.

    Reference Type

    These are the android default properties to set selected view with respect of other view.

    Reference Value

    Reference object that is used for positioning selected object

    Offset Type

    marginTop : Specifies extra space on the top side of this view. This space is outside this view's bounds.
    marginBottom : Specifies extra space on the bottom side of this view. This space is outside this view's bounds.

    Offset Value

    Value define the extra space value in pixel.

    Center Vertical

    This property centers the child vertically with respect to the bounds of its parent view.

    Apply Vertical Custom Properties

    If any of the vertical layout setting parameter(s) are selected then this value is selected to indicate user applied vertical custom layout setting parameter(s).

  • Horizontal
    PARAMETER
    DESCRIPTION
    Horizontal Group

    Group of horizontal android default properties.

    Reference Type

    Reference type is the the default property to set selected view with respect to other view.

    Reference Value

    Reference object that is used for positioning selected object.

    Offset Type

    marginLeft : Specifies extra space on the left side of this view. This space is outside this view's bounds.
    marginRight : Specifies extra space on the right side of this view. This space is outside this view's bounds.

    Offset Value

    Offset Value defines the extra space value in the pixel.

    Center Horizontal

    This property centers the child horizontally with respect to the bounds of its parent view.

    Apply Horizontal Custom Properties

    If any of the horizontal layout setting parameter(s) are selected then this value is selected to indicate user applied horizontal custom layout setting parameter(s).

  • Display/AdvanceText
    PARAMETER
    DESCRIPTION
    Hide

    Hiding an element can be done by checking ‘Hide’. This property lets you hide the control.


    Advance - Sets auto resizing with respect to superview, for Image Picker.

  • Layout Setting
    PARAMETER
    DESCRIPTION
    Horizontal

    Group of horizontal android default properties.

    Vertical

    Group of vertical android default properties.

    Layout Width

    Sets the width of the picker
    match_parent/fill_parent : Takes the width as its parent view
    wrap_content : Takes the width as its content’s width

    Layout Height

    Sets the height of the picker
    match_parent/fill_parent : Takes the height as its parent view
    wrap_content : Takes the height as its content’s height

    Left

    The padding is expressed in pixels for the left, top, right and bottom parts of the view. Padding can be used to offset the content of the view by a specific amount of pixels.


    For instance, a Left value of 2 will push the view's content by 2 pixels to the right of the left edge.

    Right

    For instance, a Right value of 2 will push the view's content by 2 pixels to the left of the right edge.

    Top

    For instance, a Top value of 2 will push the view's content by 2 pixels to the bottom of the top edge.

    Bottom

    For instance, a Bottom value of 2 will push the view's content by 2 pixels to the top of the bottom edge.

    Apply Custom Properties

    If any of the layout setting parameter(s) are selected then this value is selected to indicate user applied custom layout setting parameter(s).

    Center In Parent

    This property centers the child vertically with respect to the bounds of its parent view.

    Default Min Height

    The height of the view cannot be less than the given value.
    If user select “Default Min Height” then android default value is taken otherwise it takes 0dp.

    Default Min Width

    The width of the view cannot be less than the given value.
    If user select “Default Min Width”  then android default value is taken otherwise it takes 0dp.

  • Hidden
    PARAMETER
    DESCRIPTION
    Clears Context Before Drawing
    A Boolean value that determines whether the object's bounds should be automatically cleared before drawing.

Actions

  • Click

    This event is triggered when user taps on the control and Action is configured on a ‘Click’.

  • Image Picked

    This event is triggered when user confirms selection of an option from picker control by tapping on “Done” button on toolbar, added on top of the Image Picker control.

Remarks

  • Image Quality

    This property is used to set the quality of image while capturing. You can select from the following options:-
    High
    Medium
    Low
    640x480
    960x540
    1280x720

  • Camera Mode

    This property is for setting capturing mode for image picker control. You can set from following options -
    Rear - capture using rear camera
    Front - capture using front camera

  • Image / Video Selection

    You can configure Image Picker to pick/select images, videos or audio files on device. You can enable video selection by enabling “Enable Video Selection” property and audio selection by enabling “Enable Audio Selection” property.

  • Image Cropping

    After user picks an image, the image can be cropped or edited as well. This is possible via “Enable Cropping” and “Enable Image Editing” properties.