s = s - 1 Drawbitmap = New Bitmap(PictureBox1.Width, PictureBox1.Height) Graph = Graphics.FromImage(Drawbitmap) PictureBox1.Image = Drawbitmap Graph.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias Graph.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias Graph.DrawString(RichTextBox1.Text, dlg.Font, Brush, New RectangleF(0, s, PictureBox1.Width - 20, PictureBox1.Height)) PictureBox1.Invalidate()
Drawbitmap.Dispose();
Graph.Dispose();
PictureBox1.Invalidate();
using
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)