public float PixelToTime(float pixelX, Rect rect) { return ((((pixelX - rect.x) * this.shownArea.width) / rect.width) + this.shownArea.x); }