Answered Labels bold when background transparent!

  • Tuesday, December 02, 2008 10:35 AM
     
     
    I found a wierd problem with this charts. When I set the Charts attribute "BackColor" to transparent, the axis labels get bold. It works fine if I choose any other BackColor. 

    Did anyone else come across this problem? Anyone knows how to fix this?$0

All Replies

  • Tuesday, December 02, 2008 3:46 PM
    Owner
     
     Answered
    The issue lies 'deep' in the GDI+ used by the chart control... When you draw text in the image with transparent backgroundand you are using text anti-aliasing, GDI+ uses Black color as a default background to calculate anti-aliasing affect. You can either set solid color as a background or you can turn off text anti-aliasing using Chart.AntiAliasing=AntiAliasingStyles.Graphics;

    Alex.