Files
NativeScript/tests/app/image-source.md
Panayot Cankov e135c20b14 Rename the files
2016-05-26 14:30:25 +03:00

864 B

nav-title, title, description, previous_url
nav-title title description previous_url
image-source How-To image-source Examples for using image-source /ApiReference/image-source/HOW-TO

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