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

AndroidAppmethodCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Load From Url TBitmap Helper Class For Delphi XE6 Firemonkey On Android And IOS

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

Delphi XE6 Firemonkey Bitmap Helper Class Load From URL | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Humphrey. Kim Hyun – Soo has a demo up which shows how to subclass TBitmap and add a LoadFromUrl function in Delphi XE6 Firemonkey. There are two different versions of the example with one implementing anonymous threads and the other just doing straight HTTP downloads. A helper class is created using this syntax: TBitmapHelper = class helper for TBitmap. The subclass has two main functions LoadFromUrl and LoadThumbnailFromUrl. Once you include the helper unit under the implementation section of your unit you can start using the functions from it as if they were part of the original class. For example, you can start taking your normal TImage control and do TImage.Bitmap.LoadFromUrl(). There is a blog post in Korean (use Chrome translate) with the one example and then there is source code on Github with the second anonymous threaded version of the example.

Head over and check out the full blog post on subclassing TBitmap with a LoadFromUrl function.

Head over to Github and check out the anonymous thread FMX.Devgear.HelperClass and demo for using the TBitmap LoadFromUrl subclass.

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

Leave a Reply