(PHP 4 >= 4.0.1)
imagepalettecopy() copies the palette from the source image to the destination image.