Example #1
0
        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);
        }
Example #2
0
 public ImageComponent(View view) : base(view)
 {
     ImageService = new ImageSvc();
 }