8){ $debugfont = 'C:\WINDOWS\Fonts\verdana.ttf'; }elseif($rand > 4){ $debugfont = 'C:\WINDOWS\Fonts\ARIALN.TTF'; }else{ $debugfont = DEBUGFONT; } define(MARGINX,0); define(MARGINY,0); //?file=../../data/divide/buffer_gene.txt&xml=./log/op4oe_gene.xml&log=./log/log4oe_gene.txt&width=800 //?file=../../data/divide/buffer_gene.txt&xml=./log/op4oe_gene_index.xml&log=./log/log4oe_gene_index.txt&width=800&idwidth=150 //インデックス画像サイズの設定 define(IDWIDTH,200); // define(TILINGMODE,'TILING'); define(TILINGMODE,'LATER'); // define(TILINGMODE,'FORCE'); //GET $buffer = $_GET[file]; if(!($buffer)){ $buffer = BUFFERFILE; } $log = $_GET[log]; if(!($log)){ $log = LOGFILE; } $xml = $_GET[xml]; if(!($xml)){ $xml = XMLFILE; } $width = $_GET[width]; if(!($width)){ $width = WIDTH; } $idwidth = $_GET[idwidth]; if(!($idwidth)){ $idwidth = IDWIDTH; } $rowheight = $_GET[rowheight]; if(!($rowheight)){ $rowheight = ROWHEIGHT; } $bgcolor = $_GET[bgcolor]; if(!($bgcolor)){ $bgcolor = BGCOLOR; } $tiling = $_GET[tiling]; if(!($tiling)){ $tiling = TILINGMODE; } //オブジェクトの作成 $utgd = new UTGD4(); //フォント設定 $utgd->setFontFile(FONTFILE); //ログ設定 $utgd->openLogFile(LOGFILE,'INFO'); //サイズの設定 $utgd->setImageSize($width,HEIGHT,ROWNUM,$rowheight,CHRSTART,CHREND); //その他オプション設定 $utgd->setImageOptions($bgcolor,MARGINCOLOR); $utgd->setStringMargin(5); //デバッグ画像設定 $utgd->setDebugOptions(DEBUG,12,'black',NULL,$debugfont); //中間ファイルのパース list($max_row,$height) = $utgd->parseBufferFile($buffer,$tiling,TRUE); //INDEXイメージ画像枠の設定 $utgd->setImageSize($idwidth,$height,$max_row,$rowheight,CHRSTART,CHREND); // $utgd->setImageOptions(BGCOLOR,MARGINCOLOR); //INDEX中間ファイルのパース $utgd->parseBufferFileIndex($buffer,'WITHIN',1,$max_row); //画像枠の作成 $utgd->createImage(); //XMLファイルオープン $utgd->openXMLFile(XMLFILE); //図形の描画 $utgd->drawImage(); //図形直接テスト //DEBUG描画テスト $utgd->addDebugMessage(" ",1); $utgd->addDebugMessage("this is",1); $utgd->addDebugMessage(" Debug Message."); $utgd->addDebugMessage("set 1 to 2nd argument",1); $utgd->addDebugMessage(" if you want to insert line feed."); //XMLファイル出力 $utgd->outputXMLFile(); //画像出力 $utgd->outputImage(); ?>