Esempio n. 1
0
void STFSliders::SetVisibleRange( double a, double b )
{
   v0 = Range( a, 0.0, 1.0 );
   v1 = Range( b, 0.0, 1.0 );
   if ( v1 < v0 )
      Swap( v0, v1 );
   InvalidateGradient();
   Update();
}
Esempio n. 2
0
void STFSliders::SetChannel( int c, bool color )
{
   if ( (c = Range( c, 0, 3 )) != channel || color != rgb )
   {
      channel = c;
      rgb = color;
      InvalidateGradient();
      Update();
   }
}
Esempio n. 3
0
void CSVGGradientEditCtl::NewColor(COLORREF newrgb)
{
	PrepareRange();
	InvalidatePreview();
	InvalidateGradient();
}