All,
I am trying to create a bitmap dynamically based on a selection of text. Code is below:
Everthing works except I am having difficulty sizing the bitmap correctly based on the length of the text. Is there a way that this can be accomplished?
Regards,
Scott
I am trying to create a bitmap dynamically based on a selection of text. Code is below:
Code:
bitMapImage = new
System.Drawing.Bitmap(90,50);
Graphics graphicImage = Graphics.FromImage(bitMapImage);
graphicImage.Clear(Color.White);
SolidBrush drawBrush = new SolidBrush(Color.Red);
graphicImage.DrawString(comboStampText.Text + DateTime.Now.ToShortDateString(),
new Font("Arial", 18, FontStyle.Regular),
drawBrush, new Point(5, 5));
Regards,
Scott
Comment