[Lazarus] TCustomBitmap

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Apr 24 09:19:34 CEST 2008


Marc Weustink wrote:
> This means that in the near future, you won't be able to use a TBitmap 
> to load for instance a png image. You should use TPngImage instead.

Good work!

And now you should be able to mix in some creational design patterns. 
Any of the Factory patterns (Simple Factory, Factory Method or Abstract 
Factory) could be used to instantiate the correct image class by looking 
at the file extension, or even better the file id (first few bytes of 
the file).


Regards,
   - Graeme -


_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list