Hi All,
I'm using the following calls in a vertical label control: (borrowed from another project)
The label control draws properly etc.Code:vlblControlWidth = this.Size.Width lblControlHeight = this.Size.Height e.Graphics.DrawRectangle(labelBorderPen, 0, 0, lblControlWidth,vlblControlHeight) e.Graphics.FillRectangle(labelBackColorBrush, 0, 0, vlblControlWidth,vlblControlHeight) e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic vlblTransformX = 0 vblTransformY = vlblControlHeight e.Graphics.TranslateTransform(vlblTransformX, vlblTransformY) e.Graphics.RotateTransform(270) e.Graphics.DrawString(labelText, Font, labelForeColorBrush, 0, 0)
But if any of the text characters are a V or W there are funny jagged artifacts in those letter's angled lines.
Does anyone know how to fix this? I tried looking up anti-aliasing etc.. but aside from changing the smoothing mode to antialias I couldn't find anything (changing this doesn't help a bit)
Thanks,
Nick




Reply With Quote