(PHP 4 )
int imagepalettecopy (resource destination, resource source)
int imagepalettecopy
imagepalettecopy() copies the palette from the source image to the destination image.