/// <summary> /// Splits the in parts. /// </summary> /// <param name="xRec">The x record.</param> /// <param name="Parts">The parts.</param> /// <param name="xSplitType">Type of the x split.</param> /// <returns>Rectangle[].</returns> public static Rectangle[] SplitInParts(Rectangle xRec, int Parts, SplitType xSplitType) { Rectangle[] xOutput = null; switch (xSplitType) { case SplitType.Horizontal: xOutput = MyRectangle.SplitHorizontalInParts(xRec, Parts); break; case SplitType.Vertical: break; } return(xOutput); }
/// <summary> /// Splits the by percent. /// </summary> /// <param name="xRec">The x record.</param> /// <param name="Percents">The percents.</param> /// <param name="xSplitType">Type of the x split.</param> /// <returns>Rectangle[].</returns> public static Rectangle[] SplitByPercent(Rectangle xRec, int[] Percents, SplitType xSplitType) { Rectangle[] xOutput = null; switch (xSplitType) { case SplitType.Horizontal: xOutput = MyRectangle.SplitHorizontalByPercent(xRec, Percents); break; case SplitType.Vertical: break; } return(xOutput); }
/// <summary> /// Resizes the specified x record. /// </summary> /// <param name="xRec">The x record.</param> /// <param name="Difference">The difference.</param> /// <returns>Rectangle.</returns> public static Rectangle Resize(Rectangle xRec, int Difference) { return(MyRectangle.Resize(xRec, Difference, Difference)); }