iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
In order to load an image locally, we can try to use following approach.
private void ShowLocalImage(object obj){ this.LocalImage = this.GetType().Assembly.GetManifestResourceStream("ChangingImageViewAndroid.Core.Assets.icon.png").ToByte(); }
To load an image from a URL, try to use ImageLoaderService. To get more information about how ImageLoaderService works, please check the documentation at http://developer.intersoftpt.com/display/crosslight/Loading+Images+Asynchronously.
The snippet code below shows how to download image from a remote source.
public async void ExecuteDownload(object parameter) { // resolve an instance of ResourceLoaderService IImageLoaderService loaderService = this.GetService<IImageLoaderService>(); // connect to the specified URI and wait for the download to complete this.ImageData = await loaderService.LoadImageAsync("http://www.intersoftpt.com/webresources/images/crosslight/achieve-spectacular.png"); }
Hope this help.
Edited on August 28, 2014 03:54 AMReason: Add sample project.
I created a simple project which shows how to load an image from a remote url and locally. The sample is uploaded in here.
Please let me know your feedback regarding the sample.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname