<?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>Bee Eee Blog &#187; c# graphics gui .Net gdi+</title>
	<atom:link href="http://blog.bee-eee.com/tag/c-graphics-gui-net-gdi/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bee-eee.com</link>
	<description>-- C# hints and tips</description>
	<lastBuildDate>Wed, 23 Dec 2009 19:00:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>c# drawing outlined text.</title>
		<link>http://blog.bee-eee.com/2008/03/20/c-drawing-outlined-text/</link>
		<comments>http://blog.bee-eee.com/2008/03/20/c-drawing-outlined-text/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 17:14:01 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[c# coding GUI]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[c# graphics gui .Net gdi+]]></category>

		<guid isPermaLink="false">http://blog.bee-eee.com/2008/03/20/c-drawing-outlined-text/</guid>
		<description><![CDATA[Here is a little nice bit of code to get text to jump out at you no matter what the background.  Outlined text is especially useful when putting text on an image and don&#8217;t have control of the background contrast. Basically it draws a black boarder with a while fill. // prepare to draw text [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little nice bit of code to get text to jump out at you no matter what the background.  Outlined text is especially useful when putting text on an image and don&#8217;t have control of the background contrast.  Basically it draws a black boarder with a while fill.</p>
<pre class="code">
// prepare to draw text

StringFormat sf = new StringFormat();

sf.Alignment = StringAlignment.Center;

sf.LineAlignment = StringAlignment.Center;// draw the text to a path

System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();

path.AddString(text, Font.FontFamily, 0, 14.0f, fillRect, sf);

// fill in the outline

g.FillPath(Brushes.White, path);

// draw the outline

g.DrawPath(new Pen(Color.Black,2.0f) , path);</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.bee-eee.com/2008/03/20/c-drawing-outlined-text/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
