[Lazarus] Bitmap.Assign loses PixelFormat information on Mac OS X
Dominique Louis
dominique at savagesoftware.com.au
Fri Mar 14 20:09:56 CET 2008
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
More information about the Lazarus
mailing list