CUE.NET.Brushes.ProfileBrush.GetColorAtPoint C# (CSharp) Метод

GetColorAtPoint() защищенный Метод

Gets the color at an specific point assuming the brush is drawn into the given rectangle.
protected GetColorAtPoint ( RectangleF rectangle, BrushRenderTarget renderTarget ) : CorsairColor
rectangle System.Drawing.RectangleF The rectangle in which the brush should be drawn.
renderTarget BrushRenderTarget The target (key/point) from which the color should be taken.
Результат CUE.NET.Devices.Generic.CorsairColor
        protected override CorsairColor GetColorAtPoint(RectangleF rectangle, BrushRenderTarget renderTarget)
        {
            CorsairLed led = CueSDK.KeyboardSDK[renderTarget.LedId];
            if (led == null) return CorsairColor.Transparent;

            CorsairColor color;
            return !_colors.TryGetValue(led.Id, out color) ? CorsairColor.Transparent : color;
        }