Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
Gmagick
Installing/Configuring
Predefined Constants
Examples
Gmagick
GmagickDraw
GmagickPixel
GmagickException
GmagickPixelException
GmagickDraw::settextencoding
GmagickPixel::__construct
Gmagick
Last updated: Mon, 26 Oct 2026
The GmagickPixel class
(PECL gmagick >= Unknown)
Introduction
Class synopsis
class
GmagickPixel
{
/* Methods */
public
function
__construct
(
string
$color
= ?
)
public
function
getcolor
(
bool
$as_array
=
false
,
bool
$normalize_array
=
false
):
mixed
public
function
getcolorcount
():
int
public
function
getcolorvalue
(
int
$color
):
float
public
function
setcolor
(
string
$color
):
GmagickPixel
public
function
setcolorvalue
(
int
$color
,
float
$value
):
GmagickPixel
}
Table of Contents
GmagickPixel::__construct
— The GmagickPixel constructor
GmagickPixel::getcolor
— Returns the color
GmagickPixel::getcolorcount
— Returns the color count associated with this color
GmagickPixel::getcolorvalue
— Gets the normalized value of the provided color channel
GmagickPixel::setcolor
— Sets the color
GmagickPixel::setcolorvalue
— Sets the normalized value of one of the channels
GmagickDraw::settextencoding
GmagickPixel::__construct
Gmagick
Last updated: Mon, 26 Oct 2026