--- nav-title: "Image How-To" title: "image" environment: nativescript description: "Examples for using Image" previous_url: /ApiReference/ui/image/HOW-TO --- # Image Using an image requires the Image module to be loaded. {%snippet img-require%} Binding the image source property to a view-model property. ``` XML {%raw%}{%endraw%} ``` ### Creating an image and setting its source {%snippet img-create%} ### Creating an image and setting its src {%snippet img-create-src%} ### Creating an image and setting its src to a file within the application {%snippet img-create-local%} ### Creating an image and setting its src to Data URI {%snippet img-create-datauri%} ### Setting image stretching {%snippet img-set-stretch%}