Lines Matching defs:h
103 function create_image($w, $h) {
105 $im = imagecreatetruecolor($w, $h) or die("no img");
113 imagefilledrectangle($im, 0,0,$w,$h,$white);
133 $h = 2*EBNF_U;
134 $im = create_image($w, $h);
137 imagerectangle($im, EBNF_U, 0, $w-EBNF_U-1, $h-1, $black);
138 imagestring($im, EBNF_FONT, 2*EBNF_U, ($h-imagefontheight(EBNF_FONT))/2, $text, $red);
141 rr($im, EBNF_U, 0, $w-EBNF_U-1, $h-1, EBNF_U/2, $black);
142 imagestring($im, EBNF_FONT, 2*EBNF_U, ($h-imagefontheight(EBNF_FONT))/2,
153 $h = imagesy($inner)+2*EBNF_U;
154 $im = create_image($w, $h);
169 $w = count($inner)*EBNF_U-EBNF_U; $h = 0;
172 $h = max($h, imagesy($inner[$i]));
173 } $im = create_image($w, $h);
184 $h = (count($inner)-1)*EBNF_U; $w = 0;
186 $h += imagesy($inner[$i]);
188 } $w += 6*EBNF_U; $im = create_image($w, $h); $y = 0;
213 } $wn = 0; $wr = 0; $h = 5*EBNF_U;
217 $h += imagesy($images[$i])+2*EBNF_U;
219 if ($title=='') $h -= 2*EBNF_U;
220 if ($meta=='') $h -= 2*EBNF_U;
222 $im = create_image($w, $h);
238 imagestring($im, 1, EBNF_U, $h-2*EBNF_U+(2*EBNF_U-imagefontheight(1))/2,
240 rr($im, 0,0,$w-1, $h-1, EBNF_U/2, $green);