From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 九月 2020 13:58:19 +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