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 _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
