[Lazarus] TImage - Getting image properties in 'canvas space'
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Apr 20 00:42:53 CEST 2012
On Thu, 19 Apr 2012 19:39:01 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> On 19 April 2012 19:29, Sven Barth <pascaldragon at googlemail.com> wrote:
> >
> > The DestRect property/function of TImage that is the reason of this thread
> > was moved to public and this property doesn't even exist in Delphi (like the
> > OnPaint event for TImage)...
>
>
> And as you should very well know, the core developers of the Lazarus
> project do not live by the same rules as everybody else. They don't
> need to justify any of the changes they make.
>
> And if you read this thread in detail, other developers raised concern
> over Mattias's change - yet he still sees nothing wrong with it, so
> his change will probably stay.
I proposed a change and waited for comments.
Marc pointed out that Delphi does not have that feature and it might
be a can of worms.
So I checked the can.
Custom painting on a TImage was always possible, for example by
overriding Paint. The OnPaint is just making it easier.
TImage.OnPaint exists since many years and many people use it, so it is
useful and should be kept.
As discussed in the other thread, there is no big difference between
public and protected.
I didn't found any discussions about TImage problems, except for
TPicture and the two Canvas.
I didn't found a clue that DestRect will open a can of worms, so I
made it public.
Same happened with many of my concerns. Raising a concern is not a veto.
> Different rules for different people. But this is not my project, so
> my opinion is worth nothing here. I'll give this thread a rest now.
Mattias
More information about the Lazarus
mailing list