Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            var bmp = BitmapGenerator.GetBitmap(textBox1.Text, font, Rectangle.Empty, Color.Gray, Color.Transparent, format, System.Drawing.Text.TextRenderingHint.AntiAlias);

            GetBmpBox.Image = bmp;
            GetBmpBox.Size  = bmp.Size;
        }
Ejemplo n.º 2
0
        private void refresh()
        {
            StringFormat fffm = StringFormat.GenericDefault;

            fffm.Alignment = StringAlignment.Center;
            var bmp = BitmapGenerator.DrawText(textBox1.Text, font, Rectangle.Empty, StringFormat.GenericDefault, 0, 0, new SolidBrush(Color.Gray), Color.Transparent, System.Drawing.Text.TextRenderingHint.AntiAlias);

            DrawstringBox.Image = bmp;
            DrawstringBox.Size  = bmp.Size;
            bmp             = BitmapGenerator.GetBitmap(textBox1.Text, font, Rectangle.Empty, Color.Gray, Color.Transparent, format, System.Drawing.Text.TextRenderingHint.AntiAlias);
            GetBmpBox.Image = bmp;
            GetBmpBox.Size  = bmp.Size;
        }