[Kst] treatment of invalid data in KstImage

Barth Netterfield netterfield at astro.utoronto.ca
Sat Oct 29 01:08:04 CEST 2005


I agree that what you suggest is the correct behavior.

Can you grab the current background from the painter?

cbn

On October 27, 2005 10:25 am, Ted Kisner wrote:
> In KstMatrix, it is possible for some elements to be infinite or NAN.
> Currently, KstImage draws these matrix elements as the first color in the
> palette.  This is confusing since invalid data will then have the same
> color as normal data that is simply off-scale.
>
> I think that the correct thing to do is to paint these pixels the current
> background color (KstSettings::globalSettings()->backgroundColor).
> Unfortunately this class is compiled into libkstapp, and I need to access
> it from KstImage.cpp, which is in libkstmath.
>
> What is the most technically correct way to make KstSettings available
> globally?
>
> -Ted
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst


More information about the Kst mailing list