Lines Matching refs:im
409 function draw_hoshi($im, $bx, $by) { argument
411 …$this->circ($im, $coords[0], $coords[1], $this->style['hoshi_radius'], $this->style['line_acolor']…
414 function draw_white($im, $bx, $by) { argument
416 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius'], $this->style['white_rim_aco…
417 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius']-1, $this->style['white_acolo…
420 function draw_black($im, $bx, $by) { argument
422 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius'], $this->style['black_acolor'…
425 function draw_white_circle($im, $bx, $by) { argument
427 $this->draw_white($im, $bx, $by);
428 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius'], $this->style['mark_acolor']);
429 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius']-2, $this->style['white_acolor…
432 function draw_black_circle($im, $bx, $by) { argument
434 $this->draw_black($im, $bx, $by);
435 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius'], $this->style['mark_acolor']);
436 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius']-2, $this->style['black_acolor…
439 function draw_circle($im, $bx, $by) { argument
445 imagecopymerge($im, $sim, $x-$r-1, $y-$r-1, 0, 0, $dim, $dim, 100);
448 function draw_square($im, $bx, $by) { argument
454 imagefilledrectangle($im, $x1, $y1, $x2, $y2, $this->dgm['mark_color']);
456 function draw_link($im, $bx, $by) { argument
462 imagefilledrectangle($im, $x1, $y1, $x2, $y2, $this->dgm['link_color']);
464 function draw_white_square($im, $bx, $by) { argument
465 $this->draw_white($im, $bx, $by);
466 $this->draw_square($im, $bx, $by);
468 function draw_black_square($im, $bx, $by) { argument
469 $this->draw_black($im, $bx, $by);
470 $this->draw_square($im, $bx, $by);
472 function draw_num($im, $bx, $by) { argument
477 $this->draw_black($im, $bx, $by);
479 $this->draw_white($im, $bx, $by);
484 …imagettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['majusc_voffs'], $col, $th…
487 function draw_let($im, $bx, $by) { argument
493 imagefilledrectangle($im, $x-$r, $y-$r, $x+$r, $y+$r, $this->dgm['goban_color']);
494 …imagettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['minusc_voffs'], $this->dg…
497 function draw_coord($im, $bx, $by) { argument
511 …imagettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['majusc_voffs'], $this->dg…
514 function draw_wipe($im, $bx, $by) { argument
516 …imagefilledrectangle($im, $x-$this->style['line_sp']/2+1, $y-$this->style['line_sp']/2+1, $x+$this…
523 $im = imagecreatetruecolor($dimh, $dimv);
524 if(!$im)
553 $this->dgm['line_color'] = $this->acolor2color($im, $this->style['line_acolor']);
554 $this->dgm['mark_color'] = $this->acolor2color($im, $this->style['mark_acolor']);
555 … $this->dgm['link_color'] = $this->acolor2color($im, $this->style['link_acolor_alpha'], true);
556 $this->dgm['goban_color'] = $this->acolor2color($im, $this->style['goban_acolor']);
557 $this->dgm['black_color'] = $this->acolor2color($im, $this->style['black_acolor']);
558 $this->dgm['white_color'] = $this->acolor2color($im, $this->style['white_acolor']);
559 $this->dgm['string_color'] = $this->acolor2color($im, $this->style['string_acolor']);
561 imagefill($im, 0, 0, $this->dgm['goban_color']);
576 imageline($im, $beginh, $coords[0], $endh, $coords[0], $this->dgm['line_color']);
581 imageline($im, $coords[0], $beginv, $coords[0], $endv, $this->dgm['line_color']);
586 $this->draw_coord($im, -1, 2);
588 $this->draw_coord($im, -1, $i);
590 $this->draw_coord($im, $i, -1);
597 $this->draw_num($im, $bx, $by);
599 $this->draw_let($im, $bx, $by);
602 imagedestroy($im);
606 call_user_func(array($this, $this->functab[$symb]), $im, $bx, $by);
610 $this->draw_link($im, $bx, $by);
617 if(!imagepng($im, $filename_png)) {
618 imagedestroy($im);
622 imagedestroy($im);
660 function acolor2color($im, $acolor, $alpha = false) { argument
662 return imagecolorexactalpha($im, $acolor[0], $acolor[1], $acolor[2], $acolor[3]);
664 return imagecolorallocate($im, $acolor[0], $acolor[1], $acolor[2]);