Function __global->imagetruecolortopalette
Definitions
sources_custom/phpstub.php
- Convert a truecolor image to a palette image.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$image | resource | required parameter | N/A | N/A | The image involved |
$dither | boolean | required parameter | N/A | N/A | Whether to use dithering |
$ncolors | integer | required parameter | N/A | N/A | The maximum number of colors that should be retained in the palette |