Author Topic: Why LCL Dependency?  (Read 2249 times)


  • Sr. Member
  • ****
  • Posts: 303
Why LCL Dependency?
« on: July 31, 2012, 06:27:40 pm »
Is there a way I can use BGRABitmap library without linking the whole widgetset to my binary executable file? As I see, TBGRABitmap is derived from TFPCustomImage which is part of FCL, so it seems to me logical that LCL should be linked only in case when LCL/BGRA interaction is required. As I see, Graphics is only unit from the LCL which is being used by BGRA. So... Is it really necessary?
Thank you for your attention.
Too late to escape fate


  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: Why LCL Dependency?
« Reply #1 on: July 31, 2012, 08:09:50 pm »
Oh I thought there were some other units that are part of LCL. But mainly, this dependency is due to the fact the TBGRABitmap is some special TBitmap. Well at least it has a TBitmap and a TCanvas property. Moreover, text drawing depends on LCL. So it would be possible to extract a smaller class, without TBitmap and TCanvas property and without text functions, and without the capability to be drawn ! Drawing capabilities are based on the TBitmap property. It is mainly overriden for optimization. It would be necessary to have another mechanism for drawing.
Conscience is the debugger of the mind


TinyPortal © 2005-2018