Refresh() public abstract method

public abstract Refresh ( ) : void
return void
Esempio n. 1
0
        private void Overlay_MouseWheel(object sender, MouseWheelEventArgs e)
        {
            if (WintabUtility.PenUsing)
            {
                return;
            }

            if (e.Delta > 0)
            {
                if (zoomListIndex + 1 < zoomList.Length)
                {
                    zoomListIndex++;
                }
            }
            else
            {
                if (zoomListIndex > 1)
                {
                    zoomListIndex--;
                }
            }

            ZoomPerCent = zoomList[zoomListIndex];
            SetCam();
            RefreshOverlay();
            if (Brush != null)
            {
                Brush.Refresh();
            }
            glControl.Refresh();
        }
Esempio n. 2
0
 /// <summary>
 /// Refresh the contents of the color ramp based on the channel maxima.
 /// </summary>
 public void Refresh(byte maxR, byte maxB, byte maxG)
 {
     if (Offset != 0)
     {
         Ramp  = Ramp.CreateColorRamp(_isDynamic, Offset, _rampHues, maxR, maxB, maxG);
         Brush = Brush.Refresh(Ramp);
     }
 }