Skip to content

Chris Rolliston blog posts - Loading the app’s icon into a TImage (Windows/Android)

Chris Rolliston, Embarcadero MVP and author of the book "Delphi XE2 Foundations" recently wrote two blog posts with source code showing you how to load your application’s ICON into an FMX TImage component forAndroid and Windows. The code contains an "AppIconLoader" that you can use in your Delphi projects. You can find the two posts at:

  • Loading the app’s icon into a TImage on Android - http://delphihaven.wordpress.com/2014/01/18/loading-the-apps-icon-into-a-timage-on-android/
  • Loading the app’s icon into a TImage on Windows - http://delphihaven.wordpress.com/2014/01/20/loading-the-apps-icon-into-a-timage-on-windows/

The Android version uses FireMonkey, the Windows version leverages the VCL.Graphics unit to access the application’s ICON Windows resource. Chris said he decided to use this unit "since Vcl.Graphics.pas doesn’t bring in anything else of the VCL".

Thanks Chris!

Bad Behavior has blocked 4 access attempts in the last 7 days.

Close