Exemplo n.º 1
0
 public override void DrawMask(Graphics gr)
 {
     base.DrawMask(gr);
     gr.DrawEllipse(maskPen, MathFunctions.recalculateRectangle(percentRectangle, gr.ClipBounds));
 }
Exemplo n.º 2
0
 public RectMask(RectangleF rect, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInRectangle(pt, rect), percentRectangle, tag)
 {
 }
Exemplo n.º 3
0
 public EllipMask(RectangleF ellip, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInEllipse(pt, ellip), percentRectangle, tag)
 {
 }
Exemplo n.º 4
0
 public virtual void DrawMask(Graphics gr) => gr.DrawString(Tag, drawFont, drawBrush, MathFunctions.PercentToValue(0, gr.ClipBounds.Width, percentRectangle.X), MathFunctions.PercentToValue(0, gr.ClipBounds.Height, percentRectangle.Y));