php 튜토리얼 사이트에서 폰트를 이미지화하는건 찾았는데
현재 페이지를 이미지화하는 소스코드는 안보이네요;; ㅠㅠ
혹시 현재 보이는 페이지를 이미지로 출력하는 튜토리얼은 어디있는지 아시는분있으신가요??
<?php
header("Content-Type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
header("Content-Type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
|
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
PHPSCHOOL 에 유창화님이 올린 게시물을 참고해 보세요.
답변을 작성하려면 로그인이 필요합니다.