Question Text on Bitmaps

schmeet

Member
Joined
Jul 19, 2010
Messages
8
Programming Experience
Beginner
Hi all,

I have an application which basically creates a image by colouring each pixel of a bitmap based on some criteria. I wanted to add some text to the bottom of it and I have the following code:

VB.NET:
Dim gr As Graphics = Graphics.FromImage(bm)
Dim font As New System.Drawing.Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel)
gr.DrawString(Meters & "m", font, Brushes.Black, Margin + Margin, Y1 - font.Height)
PictureBox1.Image = bm

However, the text looks horrible, thick and blocky.

I've had a google but I cant find anything about this.

Thanks in advance for any suggestions,
Pete
 
Read the documentation for the DrawString method. It is overloaded and allows you to call it in numerous ways. I'll wager that at least one of those ways lets you smooth out the text.
 

Latest posts

Back
Top