Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXWindows

Threaded Web Image Loader Class For Delphi XE5 Firemonkey

ImageLoader Class Delphi FiremonkeyIf 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.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

Sign up for our Newsletter and
stay informed

14 Comments

Leave a Reply to Admin Cancel reply