public override void RenderPad(Graphics graphics, RectangleF bounds, GesturePadState state, int index)
 {
     graphics.SmoothingMode = SmoothingMode.AntiAlias;
     graphics.DrawEllipse(padPen, bounds);
     if (state.HasFlag(GesturePadState.Inputted))
     {
         float inflationAmount = bounds.Width * 0.3f;
         var   innerRect       = bounds;
         innerRect.Inflate(-inflationAmount, -inflationAmount);
         graphics.FillEllipse(activeBrush, innerRect);
     }
 }
示例#2
0
 public abstract void RenderPad(Graphics graphics, RectangleF bounds, GesturePadState state, int index);