$r = 255; } if ($g > 255) { $g = 255; } if ($b > 255) { $b = 255; } if ($r < 0) { $r = 0; } if ($g < 0) { $g = 0; } if ($b < 0) { $b = 0; } imagesetpixel($this->imgout, $x, $y, ImageColorAllocate($this->imgout, $r, $g, $b)); } } } } // end class //==================================================================================== $filter = new ImageFilter("../portfolio/photo/cjs_09.jpg"); // 이런저런 필터를준다. $filter->brightness($key); $filter->blur(3); //============================ 출력 header("Content-type: image/jpeg"); ImageJpeg($filter->imgout);