/// <summary> /// Initializes a new instance of the <see cref="RectangleLedGroup"/> class. /// </summary> /// <param name="device">The device this ledgroup belongs to.</param> /// <param name="fromPoint">They first point to calculate the rectangle of this ledgroup from.</param> /// <param name="toPoint">They second point to calculate the rectangle of this ledgroup from.</param> /// <param name="minOverlayPercentage">(optional) The minimal percentage overlay a LED must have with the <see cref="Rectangle" /> to be taken into the ledgroup. (default: 0.5f)</param> /// <param name="autoAttach">(optional) Specifies whether this group should be automatically attached or not. (default: true)</param> public RectangleLedGroup(ICueDevice device, PointF fromPoint, PointF toPoint, float minOverlayPercentage = 0.5f, bool autoAttach = true) : this(device, RectangleHelper.CreateRectangleFromPoints(fromPoint, toPoint), minOverlayPercentage, autoAttach) { }