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(); }
/// <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); } }