
Originally Posted by
qt_gotcha
well, as far as I can see the code does not deal with alpha levels in those functions.
Yes, so the first interpolated value will be an opaque value close to ( 0, 0, 0 ). This is probably not what you want, but does it explain what you see ?
What about overloading QwtLinearColorMap instead of using transparency for the stops:
{
virtual QRgb rgb( const QwtInterval &interval, double value ) const
{
if ( value == ... )
return qRgba( 0, 0, 0, 0 );
};
class YourColorMap: public QwtLinearColorMap
{
virtual QRgb rgb( const QwtInterval &interval, double value ) const
{
if ( value == ... )
return qRgba( 0, 0, 0, 0 );
return QwtLinearColorMap::rgb( interval, value );
};
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks