Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BrushRenderTarget"/> class.
        /// </summary>
        /// <param name="ledId">The ID of the target-LED.</param>
        /// <param name="rectangle">The rectangle representing the area to render the target-LED.</param>
        public BrushRenderTarget(CorsairLedId ledId, RectangleF rectangle)
        {
            this.Rectangle = rectangle;
            this.LedId = ledId;

            Point = rectangle.GetCenter();
        }