[Lazarus] TCustomBitmap

Marc Weustink marc.weustink at cuperus.nl
Thu Apr 24 13:43:23 CEST 2008


Graeme Geldenhuys wrote:
> 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).

IIRC tpicure already has this.

Marc




More information about the Lazarus mailing list