<?php include "setting.php"; $img = new image(); $img->SetBackGround("gif"); $img->SetCharFile("gif"); $img->ShowInfo(); $img->CopyChar(); $img->Filter(); $img->OutPutImage("gif"); class image { var $image; var $background; var $team1_front = array(); var $team1_back = array(); var $team2_front = array(); var $team2_back = array(); var $char_img_type; var $img_x, $img_y; function SetCharFile($type) { $this->char_img_type = $type; for ($j = 1; $j < 6; $j++) { if ($img = $_GET["f1" . $j]) { if (strpos($img, "/") !== false) { continue; } $file = IMG_CHAR . $img . "." . $type; if (file_exists($file)) { $this->team1_front[] = $file;
従って画像合成する場合,反転済みの画像を別で用意する。 sampleURL http://localhost/proj/hof/image.php?f11=mon_018&f12=mon_018&f13=mon_018&f14=mon_018&b11=mon_018&b12=mon_018&f21=mon_018&f22=mon_018&b21=mon_018&b22=mon_018&b23=mon_018&f23=mon_018&f24=mon_018&info=0 最後の[&info=0] は無くてもok ※※※ 魔法陣の表示に未対応!!!!!!!!! */ include("setting.php"); $img = new image(); // ( gif, png, jpeg ) // gif -> 動作確認済み // png -> 画像の色数を保てるかどうか未確認 // jpeg -> 動作未確認 $img->SetBackGround("gif");// 背景画像の形式 $img->SetCharFile("gif");// * $img->ShowInfo(); $img->CopyChar(); $img->Filter(); // 出力画像の形式 // gif > png > jpeg の順でサイズが異なる $img->OutPutImage("gif"); ////////////////////////////////////////////////////////////////////// class image{ var $image;