ISSUE
I am dealing with a system where images have been scanned in at different vertical and horizontal resolutions. The resolutions range from 96dpi to 300dpi.
My users need the ability to draw text onto these images. Using GDI+ it is easy to draw text onto images.
QUESTION
What I am having difficulty understanding, is how the user can draw text onto an image and the text drawn appears the same size, regardless of the images vertical and horizontal resolutions.
What I am seeing now, if I draw text using a 28pt arial font onto a 96ppi image the text will be smaller then if I draw text using a 28pt arial font onto a 300ppi image.
How can I take the images resolution into consideration to scale the font size when drawing text onto images?
I am drawing using the TextRenderer class.
TextRenderer.DrawText(graphics, this.txtComments.Text, font, startPoint, Color.Black);
UPDATE #1
Here is the code i'm using to initialize the font
System.Drawing.Font font = new System.Drawing.Font("Comic Sans MS", 28, FontStyle.Bold, GraphicsUnit.Point)
I have tried using GraphicsUnit.Pixel and GraphicsUnit.Point, neither one make any difference for me.
UPDATE #2
I have tried using the Graphics.DrawString method and I get the same results.
Thanks,