Esempio n. 1
0
        private void btnDrawText_Click(object sender, EventArgs e)
        {
            m_painter.SetSource(Color.Red);

            using (PathF path = new PathF())
            {
                using (FogNET.Font font = new FogNET.Font("Tahoma", 12))
                {
                    path.AddString("Hello Foggy :)", font, new PointF(120, 50));
                }

                m_painter.FillPath(path);
            }

            UpdatePictureBox();
        }