[Lazarus] A bitmap strange issue

Giuliano Colla giuliano.colla at fastwebnet.it
Sun Apr 22 18:55:47 CEST 2018


Il 22/04/2018 17:39, Mattias Gaertner via Lazarus ha scritto:

> And what to do with
>
> W := Image1.Picture.BItmap.Width?

You're right, there's no easy way out.

The original sin has been maybe to call Bitmap a TPicture property which 
isn't really a TBitmap, as the GetBitmap and SetBitmap methods show. 
This makes it easy to put any image into a picture, but creates 
unavoidable inconsistencies.

Giuliano






More information about the Lazarus mailing list