Files
NativeScript/apps/tests/image-source.md
2016-05-02 10:45:50 +03:00

816 B

nav-title, title, description
nav-title title description
image-source How-To image-source Examples for using image-source

Image source

Using the image source requires the image-source module. The pre-required imageSource module is used throughout the following code snippets. We also use fs module defined as follows:

Loading and saving images

Load image using resource name

This is similar to loading Bitmap from R.drawable.logo on Android or calling [UIImage imageNamed@"logo"] on iOS

Load image from URL

Save image source to PNG or JPG file

Load image from a local file