Пример #1
0
 private void GetDrawObject()
 {
     if (_MainColor != Owner.DrawObject.MainColor)
     {
         _DrawColor.SetColor("Main", Owner.DrawObject.MainColor);
         _MainColor = Owner.DrawObject.MainColor;
     }
 }
Пример #2
0
        /// <summary>
        /// 複製繪製顏色管理物件
        /// </summary>
        /// <returns></returns>
        public DrawColors Copy()
        {
            DrawColors result = new DrawColors()
            {
                Opacity = this.Opacity,
                RFix    = this.RFix,
                GFix    = this.GFix,
                BFix    = this.BFix
            };

            foreach (var drawColor in _DrawColor)
            {
                result.SetColor(drawColor.Key, drawColor.Value.Color);
            }
            return(result);
        }