From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 09:07:13 +0800
Subject: [PATCH] 新云端Ver1.3
---
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