[patch] cosmetic fix for KPlotWidget

Jos Poortvliet jospoortvliet at gmail.com
Fri Nov 30 14:09:15 GMT 2007


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?

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




More information about the kde-core-devel mailing list