Lines Matching refs:img

433                 $img = imagecreate(1, max($high, 1));
434 $white = $this->getBackColor($img);
435 imagefilledrectangle($img, 0, 0, 1, $high, $white);
438 $img = imagecreate(1, max($high, 1));
439 $white = $this->getBackColor($img);
440 imagefilledrectangle($img, 0, 0, 1, $high, $white);
443 $img = imagecreate(6, max($high, 1));
444 $black = $this->getFontColor($img);
445 $white = $this->getBackColor($img);
446 imagefilledrectangle($img, 0, 0, 6, $high, $white);
447 imagefilledrectangle($img, 2, 0, 2, $high, $black);
448 imagefilledrectangle($img, 4, 0, 4, $high, $black);
451 $img = imagecreate(5, max($high, 1));
452 $black = $this->getFontColor($img);
453 $white = $this->getBackColor($img);
454 imagefilledrectangle($img, 0, 0, 5, $high, $white);
455 imagefilledrectangle($img, 2, 0, 2, $high, $black);
498 $img = imagecreate(max($nx + 4, 1), max($ny + 4, 1));
499 $white = $this->getBackColor($img);
500 imagefilledrectangle($img, 0, 0, $nx + 4, $ny + 4, $white);
501 …imagecopy($img, $tmpImg, 2, 2, $sx, $sy, min($nx + 2, $tmpWidth - $sx), min($ny + 2, $tmpHeight - …
516 $img = $tmpImg;
545 $img = imagecreate(max($nx + 4, 1), max($ny + 4, 1));
546 $white = $this->getBackColor($img);
547 imagefilledrectangle($img, 0, 0, $nx + 4, $ny + 4, $white);
548 …imagecopy($img, $tmpImg, 2, 2, $sx, $sy, min($nx + 2, $tmpWidth - $sx), min($ny + 2, $tmpHeight - …
574 $img = $tmpImg;
605 $img = imagecreate(1, max($high, 1));
606 $white = $this->getBackColor($img);
607 imagefilledrectangle($img, 0, 0, 1, $high, $white);
609 $img = imagecreate(max($nx + 4, 1), max($ny + 4, 1));
610 $white = $this->getBackColor($img);
611 imagefilledrectangle($img, 0, 0, $nx + 4, $ny + 4, $white);
613 $img,
679 $img = imagecreate(1, max($high, 1));
680 $white = $this->getBackColor($img);
681 imagefilledrectangle($img, 0, 0, 1, $high, $white);
683 $img = imagecreate(max($nx + 4, 1), max($ny + 4, 1));
684 $white = $this->getBackColor($img);
685 imagefilledrectangle($img, 0, 0, $nx + 4, $ny + 4, $white);
687 $img,
702 return $img;
721 $img = imagecreate(max($dx, 1), max($dy, 1));
722 $black = $this->getFontColor($img);
723 $white = $this->getBackColor($img);
724 imagefilledrectangle($img, 0, 0, $dx, $dy, $white);
726 … imagettftext($img, $size, $angle, 0, -min($heightDim[5], $heightDim[7]), $black, $font, $text);
728 return $img;
758 $img = imagecreate(max($dx, 1), max($dy, 1));
759 $black = $this->getFontColor($img);
760 $white = $this->getBackColor($img);
761 imagefilledrectangle($img, 0, 0, $dx, $dy, $white);
763 imagettftext($img, $size, 0, 0, -min($heightDim[5], $heightDim[7]), $black, $font, $text);
765 return $img;
869 * @param resource $img
872 public function getBackColor($img) { argument
873 $back = imagecolorallocate($img, $this->backR, $this->backG, $this->backB);
875 $back = imagecolortransparent($img, $back);
883 * @param resource $img
886 public function getFontColor($img) { argument
887 return imagecolorallocate($img, $this->fontR, $this->fontG, $this->fontB);