Пример #1
0
        /// <summary>
        /// Sets a pixel to <paramref name="color"/>
        /// </summary>
        /// <param name="x">The x (horizontal) coordinate</param>
        /// <param name="y">The y (vertical) coordinate</param>
        /// <param name="color">The color in 18-bit (666) format</param>
        public void SetPixel(int x, int y, UInt32 color)
        {
            lock (this)
            {
                SetWindow(x, x, y, y);

                SendData(ColorHelper.HexTo666ByteArray(color));
            }
        }
Пример #2
0
        public void DrawRect(int left, int right, int top, int bottom, UInt32 color)
        {
            var colorArray = ColorHelper.HexTo666ByteArray(color);

            DrawRect(left, right, top, bottom, colorArray);
        }