Files
NativeScript/apps/tests/image-source.md
Erjan Gavalji f15f283c74 Reorder test file structure to match the modules
Needed to have a nice structured cookbook dir in the docs

Includes:
Move the data-module tests under the data dir
Move the frame tests under the ui dir
Rename the dialog.md file to dialogs.md
Fix the web-view title
Add previous_url attributes to each article for SEO
Rename the style dir to styling to match the reference
Fix the frame-tests path
2016-05-05 10:43:35 +03:00

864 B

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