Hi Marc, I totally understand that when you first create a Bitmap it should not have a PixelFormat, so defaulting to pfDevice is fine, but surely in the case of an Assign call it should copy the properties over as well. I would be surprised if it does not work that way in Delphi.
Dominique. Marc Weustink wrote: > Dominique Louis wrote: >> Hi all, >> If I assign a 24bit Bitmap to a newly created bitmap, the PixelFormat >> info is not copied across. >> >> I am doing the following... >> >> bbb := TBitmap.Create; >> bbb.Assign(My24bitBitmap); >> >> bbb is no longer 24bit. It now appears to be pfDevice. > > At this moment all bitmaps are pfDevide per def. Other formats aren't > really supported. > > Marc _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
