Drawing anti-aliased lines using the GD library

Discussion in 'PHP' started by Salvia, Dec 10, 2007.

  1. #1
    I was following an article on a website earlier, and although it outputted the pie chart for me perfectly, I want to make it anti-aliased somehow. I have linked to the specific article below just in case you wish to replicate for testing the anti-aliasing. I found the GD function, imageantialias() but I've tried setting it to true at the top of the code just after the imagecreate() function - but to no avail.

    Article: http://www.talkphp.com/showthread.php?t=1629

    Somebody please help me!! I'd really love to get the anti-aliasing to work as it'd then be perfect for what I need it for. With it looking rough at the moment it looks naturally unpolished which is no good for my client :(

    Thank youu in advance!
     
    Salvia, Dec 10, 2007 IP
  2. Salvia

    Salvia Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please somebody :(
     
    Salvia, Dec 10, 2007 IP
  3. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #3
    not sure if that is helpfull,m but i always use php/swf charts. looks great and you can customize pretty much everything (fonts, color, sizes, placement, ...)

    http://www.maani.us/charts/index.php
     
    falcondriver, Dec 10, 2007 IP