Файл: gapps/vendor/intervention/image/src/Intervention/Image/Gd/Commands/PixelCommand.php
Строк: 31
<?php
namespace InterventionImageGdCommands;
use InterventionImageGdColor;
class PixelCommand extends InterventionImageCommandsAbstractCommand
{
/**
* Draws one pixel to a given image
*
* @param InterventionImageImage $image
* @return boolean
*/
public function execute($image)
{
$color = $this->argument(0)->required()->value();
$color = new Color($color);
$x = $this->argument(1)->type('digit')->required()->value();
$y = $this->argument(2)->type('digit')->required()->value();
return imagesetpixel($image->getCore(), $x, $y, $color->getInt());
}
}