18 $filling = $this->
argument(0)->value();
19 $x = $this->
argument(1)->type(
'digit')->value();
20 $y = $this->
argument(2)->type(
'digit')->value();
22 $width = $image->getWidth();
23 $height = $image->getHeight();
24 $resource = $image->getCore();
30 $tile = $source->
init($filling);
31 imagesettile($image->getCore(), $tile->getCore());
32 $filling = IMG_COLOR_TILED;
37 $color =
new Color($filling);
38 $filling = $color->getInt();
41 imagealphablending($resource,
true);
43 if (is_int($x) && is_int($y)) {
46 $base = $image->getDriver()->newImage($width, $height)->getCore();
47 imagecopy($base, $resource, 0, 0, 0, 0, $width, $height);
50 imagefill($resource, $x, $y, $filling);
53 imagecopy($base, $resource, 0, 0, 0, 0, $width, $height);
56 $image->setCore($base);
57 imagedestroy($resource);
61 imagefilledrectangle($resource, 0, 0, $width - 1, $height - 1, $filling);
64 isset($tile) ? imagedestroy($tile->getCore()) :
null;