Methods |
public
static
|
create(int $width, int $height): PaletteImage
Create a palette image
|
#
|
public
|
doCreate($width, $height)
|
#
|
public
|
isTrueColor()
(non-PHPdoc)
|
#
|
public
|
asPalette($nColors = 255, $dither = null, $matchPalette = true)
(non-PHPdoc)
Parameters
$nColors |
Number of colors in the resulting image, more than 0, less or equal to 255
|
$dither |
Use dithering or not
|
$matchPalette |
Set to true to use imagecolormatch() to match the resulting palette more closely to the original image
|
Implements
|
#
|
protected
|
copyAsNew($trueColor = false): Image
Returns a copy of the image
Returns a copy of the image
|
#
|
public
|
asTrueColor()
(non-PHPdoc)
|
#
|
public
|
getChannels()
(non-PHPdoc)
|
#
|
public
|
copyNoAlpha()
(non-PHPdoc)
|
#
|