Пример #1
0
        private void drawText()
        {
            using (Graphics graphic = Graphics.FromImage(_Image))
            {
                using (System.Drawing.Font f = new System.Drawing.Font(FontControl.GetFontName(Font), FontSize))
                {
                    StringBuilder sb = new StringBuilder();
                    sb.AppendFormat("{0}: {1}", "FQDN", Info.FQDN);
                    sb.Append(Environment.NewLine);
                    sb.AppendFormat("{0}: {1}", "OS", Info.OperatingSystem.FullName);

                    graphic.DrawString(sb.ToString(), f, Brush, Point);
                }
            }
        }
Пример #2
0
        // Private methods
        private Font getFont()
        {
            Font font = FontControl.GetFontType(drpFonts.SelectedValue.ToString());

            return(font);
        }