I am writing some software which overlays text on to an image.
The code is quite straight forward, I am basically creating a new bitmap obect, then loading a jpg (or bmp) into it , then assigning it to a graphics object (if thats teh correct term), using the drawstring function and outputing it accordingly (PDF, physical printer etc).
The problem is that to get the text to look nice, I have to force the dpi to something around 150 or higher, and that means I have to change my jpegs around (otherwise they print smaller, as they are 96dpi).
Should the text really be blocky and rough looking at 96dpi?
I have tried playing with
But im not having much luck.
I can get around the problem by using higher dpi's, but its not ideal as it has a performance impact, and I feel that overlaying some fixed width font on a pretty basic jpeg (lines and boxes) should be pretty simple.
Obviously I could just put up with blocky text, but I want to make it 'nice'.
Any help/ideas appreciated!
The code is quite straight forward, I am basically creating a new bitmap obect, then loading a jpg (or bmp) into it , then assigning it to a graphics object (if thats teh correct term), using the drawstring function and outputing it accordingly (PDF, physical printer etc).
The problem is that to get the text to look nice, I have to force the dpi to something around 150 or higher, and that means I have to change my jpegs around (otherwise they print smaller, as they are 96dpi).
Should the text really be blocky and rough looking at 96dpi?
I have tried playing with
VB.NET:
Graphic.CompositingQuality = Drawing2D.CompositingQuality.HighQuality
Graphic.SmoothingMode = Drawing2D.SmoothingMode.HighQuality
Graphic.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAliasGridFit
'Graphic.CompositingMode = Drawing2D.CompositingMode.SourceCop
Graphic.InterpolationMode = Drawing2D.InterpolationMode.Bicubic
But im not having much luck.
I can get around the problem by using higher dpi's, but its not ideal as it has a performance impact, and I feel that overlaying some fixed width font on a pretty basic jpeg (lines and boxes) should be pretty simple.
Obviously I could just put up with blocky text, but I want to make it 'nice'.
Any help/ideas appreciated!