Hi,

Today i've committed a few graphics changes which might effect existing 
applications.

1) TBitmap is splitup into 4 separate classes:

TRasterImage (TGraphic)
  A mostly virtual baseclass which has a Canvas and the capability
  of displaying itslef through a BitmapHandle.

TCustomBitmap (TRasterImage)
  A baseclass for rasterimages with one image

TFPImageBitmap (TCustomBitmap)
  A base class for images which get loaded and saved with the help
  of FPImage. Most image formats lazarus supports are read this way

TBitmap, TPixmap, TPNGImage.... (TFPImageBitmap)
  Implementations of the specific graphic formats. Most define
  only a reader and a writer.

This means that old code where a XPM is loaded by a TBitmap is not 
supported anymore (or even worse, a BMP by a TPngImage)

Also assignments like:
var
   b: TBitmap;
begin
   b := TPngImage.Create...
end;
is not supported.


2) Reading of TIcon is implemented. Writing and modification still needs 
to be done. Since this wasn't possible in the old situation either, I 
decided to commit first (keeping such changes in sync with svn is a pain)


Marc

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to