[patch] cosmetic fix for KPlotWidget

Jason Harris kstars at 30doradus.org
Fri Nov 30 17:30:17 GMT 2007


On Friday 30 November 2007 07:09:15 am Jos Poortvliet wrote:
> On 11/29/07, Hans Meine <hans_meine at gmx.net> wrote:
> > Am Donnerstag, 29. November 2007 13:59:22 schrieb Sebastian Kuegler:
> > > On Thursday 29 November 2007 12:39:32 John Tapsell wrote:
> > > > I very much prefer the first one to the second one. In the first
> > > > one it's faint and doesn't stand out too much. In the second one it's
> > > > too strong.
> > >
> > > I think the second version is correct, however. The line should be one
> > > pixel, the blurry effect comes this line being placed 'between' two
> > > pixels, which makes it look odd. If you prefer the second option, the
> > > you should either increase the transparency of the brush used, or make
> > > the line thinner.
> >
> > The real bug is that integer coordinates do not denote the centers of
> > pixels. (Think of it this way: square pixels do not exist; they are
> > simply the nearest-neighbor interpolation of the sampling points, which
> > are at integer coordinates.)  This makes live hard for people (like me,
> > doing high-accuracy image analysis) who care about sub-pixel positions
> > and such "neglectable" offsets.
> >
> > To become OT again: Jason's patch is the right workaround for this bug in
> > Qt AFAICS. ;-p
>
> You call this a bug - would that mean as soon as this is fixed we're
> gonna see fuzzy lines again?

Yes, for the interval of time between a hypothetical fix entering qt-copy, and 
someone (me) noticing it and removing the fix in KPlotWidget.

>
> > Ciao, /  /
> >     /--/
> >    /  / ANS



-- 
KStars: KDE Desktop Planetarium
kstars at 30doradus.org




More information about the kde-core-devel mailing list