<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>前端之路 &#187; gd</title>
	<atom:link href="http://www.simcn.com/tag/gd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simcn.com</link>
	<description>网站开发, 前端开发, 高性能前端开发</description>
	<lastBuildDate>Thu, 03 Nov 2011 02:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP通过GD库输出中文(简单方法)</title>
		<link>http://www.simcn.com/php_gd_chinese</link>
		<comments>http://www.simcn.com/php_gd_chinese#comments</comments>
		<pubDate>Mon, 27 Apr 2009 09:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.simcn.com/?p=150</guid>
		<description><![CDATA[需要在UTF8页面上才能使用! // 建立一幅 100X30 的图像 $im = imagecreate(100, 30); // 白色背景和蓝色文本 $font="C://WINDOWS//Fonts//simhei.ttf"; // linux 不知道如何处理. $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); $black = imagecolorallocate($im, 0, 0, 0); // 写入中文 imagettftext($im, 20, 0, 10, 20, $textcolor, $font, "中文"); // 输出图像 header("Content-type: image/png"); imagepng($im);]]></description>
			<content:encoded><![CDATA[<p>需要在UTF8页面上才能使用!</p>
<pre name='code' class='php'>
// 建立一幅 100X30 的图像
$im = imagecreate(100, 30);

// 白色背景和蓝色文本
$font="C://WINDOWS//Fonts//simhei.ttf"; // linux 不知道如何处理.
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
$black = imagecolorallocate($im, 0, 0, 0);

// 写入中文
imagettftext($im, 20, 0, 10, 20, $textcolor, $font, "中文");

// 输出图像
header("Content-type: image/png");
imagepng($im);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.simcn.com/php_gd_chinese/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

