I have a problem with my text quality after printing ! it's not smooth and antialiases!
This is the story :
I create a graphic from a bitmap (Graphics.FromImage(MyBitmap)) and I think it's the start point of my problem because I can't use PrintPageEvenArg(e) , but I have no other choice!
after that I begin writing some text on this graphic:
by reading the answers of similar Questions in this site and some others , I made some changes on my graphics properties such as smoothingMode , TextRenderingHint , ... that U see in continue... but unfortunately none of them helped me !
SolidBrush sb = new SolidBrush(Color.White);
graphics.FillRectangle(sb,oRectangle);
graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
graphics.SmoothingMode =
System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
graphic.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphic.PixelOffsetMode = PixelOffsetMode.HighQuality;
graphic.CompositingQuality = CompositingQuality.HighQuality;
graphic.CompositingMode = CompositingQuality.SourceOver;
Graphics.DrawString(strValue, boxStyle.Font, sb, oRectangle, StringFormat);
<
by antialising I got better smooth edge but I see a lot of extra pixel near my text and my text color seems to become lighter so I can say that by smoothing edge my text quality even got worse !
I also used different image Formats such as png , jpg , bmp , ... but not helped!
plz help me ! Thanx in advance :)