Hi,
Tonight I introduced a new base class for all raster based images(*)
This is to remove OO inpurities in the current TBitmap implementation
(**), to keep the loaded and cached stream of the correct type and I
needed a clean base to implement TIcon.
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.
Also assigning directly TBitmap := TPnGImage will fail since they share
only a common baseclass. However TBitmap.Assign(TPnGImage) will work.
For the time being if your project fails to compile, you can enable the
{.$define BITMAP_OLDSTYLE} define in graphics.pp
Marc
*) now thinking of, maybe I should have called it TRasterImage.
**) some parts of TMyBitmap wil fail to function if you derive a
TMyBitmap = class(TBimap)
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus