Пример #1
0
        public ColorEditor16(ProjectMainForm parent, Palette16Form p16, Subpalette sp)
        {
            m_parent     = parent;
            m_winPalette = p16;
            m_subpalette = sp;

            InitializeComponent();

            UpdateColorScrollbars();
        }
Пример #2
0
        public ColorEditor16(ProjectMainForm parent, Palette16Form p16, Subpalette sp)
        {
            m_parent = parent;
            m_winPalette = p16;
            m_subpalette = sp;

            InitializeComponent();

            UpdateColorScrollbars();
        }
Пример #3
0
        public Palette16(Document doc, Palettes pals, string strName, int id, string strDesc)
            : base(doc, pals, strName, id, strDesc)
        {
            m_type = Palette.Type.Color16;
            m_nMaxSubpalettes = 16;

            m_subpalettes = new Subpalette[m_nMaxSubpalettes];
            for (int i = 0; i < m_nMaxSubpalettes; i++)
                m_subpalettes[i] = new Subpalette(doc, this, i, Subpalette.DefaultColorSet.BlackAndWhite);

            CurrentSubpaletteId = 0;

            if (m_doc.Owner != null)
                m_winPalette = new Palette16Form(m_doc.Owner, this);
        }
Пример #4
0
        public Palette16(Document doc, Palettes pals, string strName, int id, string strDesc) :
            base(doc, pals, strName, id, strDesc)
        {
            m_type            = Palette.Type.Color16;
            m_nMaxSubpalettes = 16;

            m_subpalettes = new Subpalette[m_nMaxSubpalettes];
            for (int i = 0; i < m_nMaxSubpalettes; i++)
            {
                m_subpalettes[i] = new Subpalette(doc, this, i, Subpalette.DefaultColorSet.BlackAndWhite);
            }

            CurrentSubpaletteId = 0;

            if (m_doc.Owner != null)
            {
                m_winPalette = new Palette16Form(m_doc.Owner, this);
            }
        }
Пример #5
0
 private void pbPalette_Paint(object sender, PaintEventArgs e)
 {
     Palette16Form.DrawPalette(e.Graphics, m_subpalette);
 }