Lines Matching refs:image
29 $image = $this->createTransparentImage($this->fullsize, $this->fullsize);
32 $this->drawRing($image, $arcwidth);
38 …imagecopyresampled($out, $image, 0, 0, 0, 0, $this->size, $this->size, $this->fullsize, $this->ful…
46 imagedestroy($image);
53 * @param resource $image
56 protected function drawRing($image, $arcwidth) argument
58 $color = $this->randomColor($image);
59 $transparency = $this->transparentColor($image);
65 …imagefilledarc($image, $this->center, $this->center, $arcwidth, $arcwidth, $stop, $start, $color, …
66 imagefilledellipse($image, $this->center, $this->center, $arcwidth - $this->ringwidth,
69 imagecolordeallocate($image, $color);
70 imagecolordeallocate($image, $transparency);
76 * @param resource $image
79 protected function transparentColor($image) argument
81 return imagecolorallocatealpha($image, 0, 0, 0, 127);
90 protected function randomColor($image) argument
93 …return imagecolorallocatealpha($image, $this->monocolor[0], $this->monocolor[1], $this->monocolor[…
95 … return imagecolorallocate($image, $this->rand(0, 255), $this->rand(0, 255), $this->rand(0, 255));
108 $image = @imagecreatetruecolor($width, $height);
109 if (!$image) {
112 imagealphablending($image, false);
113 $transparency = $this->transparentColor($image);
114 imagefill($image, 0, 0, $transparency);
115 imagecolordeallocate($image, $transparency);
116 imagesavealpha($image, true);
117 return $image;