예제 #1
0
파일: Mask.cs 프로젝트: SeryMa/FlyCatcher
 public override void DrawMask(Graphics gr)
 {
     base.DrawMask(gr);
     gr.DrawEllipse(maskPen, MathFunctions.recalculateRectangle(percentRectangle, gr.ClipBounds));
 }
예제 #2
0
파일: Mask.cs 프로젝트: SeryMa/FlyCatcher
 public RectMask(RectangleF rect, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInRectangle(pt, rect), percentRectangle, tag)
 {
 }
예제 #3
0
파일: Mask.cs 프로젝트: SeryMa/FlyCatcher
 public EllipMask(RectangleF ellip, RectangleF percentRectangle, string tag) : base(pt => MathFunctions.isPointInEllipse(pt, ellip), percentRectangle, tag)
 {
 }
예제 #4
0
파일: Mask.cs 프로젝트: SeryMa/FlyCatcher
 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));