Text in MS Charts gets "blocky" when BackColor is transparent [closed]
Asked Answered
P

1

5

When settings BackColor = Color.Transparent, this is the picture I end up with from Microsofts asp.net chart control

http://login.competencetool.se/blockychart.bmp

If I don't set any background(default is white), or set a color this is the result

change the image to okchart.bmp

Does anyone know if there's any way to get the font/text to don't get messed up when using transparent background?

I wasn't allowed to link the images, so look at the adresses.

Penuche answered 26/11, 2009 at 13:59 Comment(1)
Nice... .BackColor = Color.Transparent; is the culprit indeed. Just changed it to Color.White and now the AntiAliasingStyles.All is just perfect.Psychosis
P
12

Set chart's AntiAliasing to AntiAliasingStyles.Graphics to disable the antialiasing on text.

Taken from this thread.

Paresh answered 14/5, 2010 at 12:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.