Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Threaded Web Image Loader Class For Delphi XE5 Firemonkey

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

ImageLoader Class Delphi Firemonkey | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSIf you’re loading images off the web in your Android or IOS app you may want to take a look at this class. You can use the class to queue up loading images from the web asynchronously using a thread so that the UI of your app isn’t blocked. It also has some functionality where it will cache the images that you load with it so that if you load the same image multiple times it will only download the image once. There are some other web image loading components out there but if you simply want to queue up the loading with no frills then try this one out. It uses an asynchronous library from the same author called AsyncTask.

Head over and check out the TImageLoader class.

Update: Apparently Delphi XE5 has a threading issue with Bitmaps on Android which can cause this TImageLoader to access violation. I found the fix for this on StackOverflow here. Here is a demo project which demonstrates TImageLoader loading a Bitmap on Android.

Exit mobile version