示例#1
0
 private void DrawXPanel(Bitmap bitmap, RenderedXpanel renderedXPanel)
 {
     using (Graphics gfx = Graphics.FromImage(bitmap))
     {
         Pen p = new Pen(renderedXPanel.XColor, 3);
         gfx.DrawRectangle(p, renderedXPanel.XRecatngle);
         Font       F           = new Font("Arial", 10);
         SolidBrush shadowBrush = new SolidBrush(Color.Black);
         gfx.DrawString(renderedXPanel.Text, F, shadowBrush, renderedXPanel.XRecatngle.X + 5, renderedXPanel.XRecatngle.Y + 5);
     }
 }
示例#2
0
        private void RenderXPanel(XPanel XPanel, int ParentPanelX, int ParentPanelY)
        {
            RenderedXpanel RXPanel = new RenderedXpanel()
            {
                XRecatngle = GetRectangleOfRenderedXPanel(XPanel, ParentPanelX, ParentPanelY)
            };

            RXPanel.Text   = XPanel.Name;
            RXPanel.XColor = Color.Black;
            ListOfRenderedXPanel.Add(RXPanel);
            RenderChildXPanel(XPanel, RXPanel.XRecatngle.X, RXPanel.XRecatngle.Y);
        }
示例#3
0
        private void RenderXPanel(XPanel XPanel)
        {
            ListOfRenderedXPanel = new List <RenderedXpanel>();
            RenderedXpanel RXPanel = new RenderedXpanel();

            RXPanel.XRecatngle = GetRectangleOfRenderedXPanel(XPanel);
            RXPanel.Text       = "Root panel";
            RXPanel.XColor     = Color.Black;
            //render XPanel
            ListOfRenderedXPanel.Add(RXPanel);
            RenderChildXPanel(XPanel, RXPanel.XRecatngle.X, RXPanel.XRecatngle.Y);
        }