Пример #1
0
 public override void DrawMask(Graphics gr)
 {
     base.DrawMask(gr);
     gr.DrawEllipse(maskPen, MathFunctions.recalculateRectangle(percentRectangle, gr.ClipBounds));
 }
Пример #2
0
 public RectMask(RectangleF rect, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInRectangle(pt, rect), percentRectangle, tag)
 {
 }
Пример #3
0
 public EllipMask(RectangleF ellip, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInEllipse(pt, ellip), percentRectangle, tag)
 {
 }
Пример #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));