<?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>Duygu AĞIRAL - Webmaster &#187; image</title>
	<atom:link href="http://www.duyguagiral.com.tr/etiketler/image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.duyguagiral.com.tr</link>
	<description>Programcı Kimliğini Yıkacak Programcı</description>
	<lastBuildDate>Tue, 24 Jan 2012 17:22:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP ile Resim Üzerine Yazı Ekleme</title>
		<link>http://www.duyguagiral.com.tr/php-ile-resim-uzerine-yazi-ekleme/</link>
		<comments>http://www.duyguagiral.com.tr/php-ile-resim-uzerine-yazi-ekleme/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:10:04 +0000</pubDate>
		<dc:creator>Duygu</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://blog.duyguagiral.com/?p=5</guid>
		<description><![CDATA[Geçenlerde bir site için resim üzerine yazı eklemem gerekti, kullandığım fonksiyonu sizinle de paylaşayım; function yaz($eski,$yeni,$text,$font) { $resmim = imagecreatefromjpeg($eski); if(!$resmim) { die("Böyle Bir Resim Yok"); } $yellow = imagecolorallocate($resmim, 255, 255, 0); $black = imagecolorallocate($resmim, 0, 0, 0); $width = imagesx($resmim); $height = imagesy($resmim); imagefilledrectangle($resmim, 0, ($height-18) , $width, $height, $black); $yazilacak = ( [...]]]></description>
			<content:encoded><![CDATA[<p>Geçenlerde bir site için resim üzerine yazı eklemem gerekti, kullandığım fonksiyonu sizinle de paylaşayım;</p>
<p><span id="more-5"></span></p>
<pre lang="php">function yaz($eski,$yeni,$text,$font)
{
$resmim = imagecreatefromjpeg($eski);
if(!$resmim)
{
die("Böyle Bir Resim Yok");
}
$yellow = imagecolorallocate($resmim, 255, 255, 0);
$black = imagecolorallocate($resmim, 0, 0, 0);
$width = imagesx($resmim);
$height = imagesy($resmim);
imagefilledrectangle($resmim, 0, ($height-18) , $width, $height, $black);
$yazilacak = ( $width - imagefontwidth($font)*strlen($text) )/2;
imagestring($resmim, $font, $yazilacak, $height-18, $text, $yellow);
imagejpeg($resmim,$yeni);
imagedestroy($resmim);

echo 'Resime yazı yazıldı';
}

yaz("eski_resim.jpg","yeni_resim.jpg","yazilacak_yazi","3");</pre>
<p>Tabi buradaki &#8220;3&#8243; font büyüklüğü.</p>
<div align="right" style="float: right; padding: 5px 0px 0px 5px;"><a name="fb_share" type="button" share_url="http://www.duyguagiral.com.tr/php-ile-resim-uzerine-yazi-ekleme/">Paylaş</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.duyguagiral.com.tr/php-ile-resim-uzerine-yazi-ekleme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

