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

| 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.

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

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

14 Comments

Leave a Reply