imagepalettecopy

PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
imagepalettecopy - Copy the palette from one image to another
Manual
Code Examples

imagepalettecopy( GdImage$dst, GdImage$src ): void

imagepalettecopy copies the palette from the src image to the dst image.

Parameters

dst

The destination image object.

src

The source image object.

Return Values

No value is returned.

Changelog

Version Description
8.0.0 dst and src expect GdImage instances now; previously, resources were expected.

Example of imagepalettecopy

Show all examples for imagepalettecopy

PHP Version:


Function imagepalettecopy:

Image Processing and GD Functions

Most used PHP functions