imagesetpixel
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Set a single pixel
imagesetpixel
(
GdImage $image
,
int $x
,
int $y
,
int $color
):
bool
Intervention/image
$x
=
$this
->
argument
(
1
)->
type
(
'digit'
)->
required
()->
value
();
$y
=
$this
->
argument
(
2
)->
type
(
'digit'
)->
required
()->
value
();
return
imagesetpixel
(
$image
->
getCore
(),
$x
,
$y
,
$color
->
getInt
());
}
}
src/Intervention/Image/Gd/Commands/PixelCommand.php