private async Task <Bitmap> LoadImageAsync(String uri) { Log.Debug(TAG, "Image " + (++ctr) + " load starting..."); ImageSvc imgSvc = new ImageSvc(); Bitmap bitmap = await imgSvc.loadAndDecodeBitmap(uri); Log.Debug(TAG, "Image " + ctr + " load completed"); if (bitmap != null) { try { image.SetImageBitmap(bitmap); } catch (Exception ex) { Log.Debug(TAG, ex.Message); } } Log.Debug(TAG, "Image " + ctr + " load started"); return(bitmap); }
public ImageComponent(View view) : base(view) { ImageService = new ImageSvc(); }