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!
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to