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