[Lazarus] TPicture width questions (duplicate ways)

noreply at z505.com noreply at z505.com
Thu Mar 9 17:05:54 CET 2017


TPicture has several width properties in all sorts of places, for 
example:

var p: TPicture;
begin
   ...
   p.width
   p.jpeg.width
   p.bitmap.width
end;

Are any of these pure duplicates that are exactly the same thing, or do 
some of them have different behaviours and should most definitely not be 
used interchangeably?

The easiest to read and shortest is just p.width

This is some kind of possible problem with OOP maybe that there are 
"multiple ways of doing the same thing"... or a feature.. Or, there is a 
good reason these values are available in multiple places? i.e. jpeg 
somehow is independent from the main p.width?

Thanks!


More information about the Lazarus mailing list