Perhaps you need the gd prefixed:

http://www.boutell.com/gd/manual2.0....reateTrueColor

Are other gd calls working?