From dee21bf452a8979d0515d13e534fbb69ed9715dd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 01 九月 2020 15:33:13 +0800
Subject: [PATCH] 上传一个版本

---
 ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs b/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs
index f17793b..4ebcf61 100755
--- a/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs
+++ b/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs
@@ -6,6 +6,18 @@
     public class OwnCodes
     {
 
+        /// <summary>
+        /// 灏哛GB杞崲涓洪鑹层�傘�傘��
+        /// </summary>
+        /// <param name="R"></param>
+        /// <param name="G"></param>
+        /// <param name="B"></param>
+        /// <returns></returns>
+        private uint GetColorByRGB(byte R, byte G, byte B)
+        {
+            return (uint)(0xFF000000 + R * 256 * 256 + G * 256 + B);
+        }
+
         #region set/get
         [Newtonsoft.Json.JsonIgnore]
         /// <summary>

--
Gitblit v1.8.0