gdImageCreatePaletteFromTrueColor()

 
Syntax
gdImageCreatePaletteFromTrueColor( im, ditherFlag, colorsWanted )
User Annotations: gdImageCreatePaletteFromTrueColor