public RectangleF ToTrackRect(RectangleF rect) { var x1 = FRuler.XPosToTime(rect.X); var y1 = YPosToValue(rect.Y); var width = FRuler.XDeltaToTime(rect.Width); var height = YDeltaToValue(-rect.Height); return(new RectangleF(x1, y1 - height, width, height)); }
public override void Default_MouseMove(object sender, MouseArg e) { base.Default_MouseMove(sender, e); MouseTimeLine.StartX = e.x; MouseTimeLine.EndX = e.x; Ruler.MouseTimeLabel.X = Math.Max(0, e.x - 110); Ruler.MouseTimeLabel.Text = Timer.TimeToString(Ruler.XPosToTime(e.x)); }