示例#1
0
        // *******************************************************
        public void ColorFromClip()
        {
            AE_ClipData clipData = new AE_ClipData();

            AEColor[] cols = clipData.ColorFromClip();
            if (cols.Length > 0)
            {
                if (cols.Length == 1)
                {
                    if (m_ColorBoxs.SelectedIndex >= 0)
                    {
                        m_ColorBoxs.Items[m_ColorBoxs.SelectedIndex].AE_Color = cols[0];
                    }
                }
                else
                {
                    if (m_ColorBoxs.SelectedIndex >= 0)
                    {
                        for (int i = 0; i < cols.Length; i++)
                        {
                            int idx = m_ColorBoxs.SelectedIndex + i;
                            if (idx >= m_ColorBoxs.Items.Count)
                            {
                                break;
                            }
                            m_ColorBoxs.Items[idx].AE_Color = cols[i];
                        }
                    }
                }
            }
        }
示例#2
0
        // *******************************************************
        public void ColorToClip()
        {
            if (m_ColorBoxs.SelectedIndex < 0)
            {
                return;
            }
            AE_ClipData clipData = new AE_ClipData();

            clipData.ColorToClip(m_ColorBoxs.Items[m_ColorBoxs.SelectedIndex].AE_Color);
        }