You check out the GD info on php.net?
http://www.php.net/gd
Right before the user comments, there's a working PNG example on how to load a PNG, make some additions to it, then output it. Also check out the instructions for imagecopy (there's actually a couple functions called imagecopy depending on what you wish to do).
Otherwise, what code are you stuck on or confused about?