<?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>Pschierer Web Development Blog</title>
	<atom:link href="http://www.pschierergraphics.com/professionalblog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pschierergraphics.com/professionalblog</link>
	<description>tutorials, reviews, discussion..anything web</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:01:37 +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>Google&#8217;s Webmaster Tools</title>
		<link>http://www.pschierergraphics.com/professionalblog/?p=8</link>
		<comments>http://www.pschierergraphics.com/professionalblog/?p=8#comments</comments>
		<pubDate>Fri, 30 Dec 2011 03:51:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pschierergraphics.com/professionalblog/?p=8</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
I used to just love Google Analytics.  Then, I found Webmaster Tools, another website analyzer provided by Google.  If I could marry this tool, I would. What can it do? I love its diagnostic tools.  It displays crawl errors, possible male-ware on &#8230; <a href="http://www.pschierergraphics.com/professionalblog/?p=8">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
<p>I used to just love Google Analytics.  Then, I found Webmaster Tools, another website analyzer provided by Google.  If I could marry this tool, I would.</p>
<p><span style="color: #993300;">What can it do?</span></p>
<p>I love its <strong>diagnostic</strong> tools.  It displays crawl errors, possible male-ware on the site, and even gives html suggestions to increase your ranking.</p>
<p>It also gives a wonderful <strong>keyword </strong>analysis of your website.  It displays the search queries used when your website was found on the search engine, all of the outside links to your website, and which keywords the crawlers are picking up.  This is powerful stuff.</p>
<p>You can also submit a <strong>site map </strong>from here to let Google know about any updates to the website.</p>
<p>Want to try it?  Get it here: <a href="http://www.google.com/webmasters/tools/">http://www.google.com/webmasters/tools/</a></p>
<p>Now, don&#8217;t neglect <a title="Google Analytics" href="https://www.google.com/analytics/">Analytics</a>.  It really is Google&#8217;s core website analyzer and it&#8217;s very powerful.  I see Webmaster Tools as an add on, an add on you really don&#8217;t want to be without.  Give it a try.  You&#8217;ll never want to be without it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschierergraphics.com/professionalblog/?feed=rss2&#038;p=8</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Graphics Tool, Paint Event, Bitmap Graphic, Resources</title>
		<link>http://www.pschierergraphics.com/professionalblog/?p=5</link>
		<comments>http://www.pschierergraphics.com/professionalblog/?p=5#comments</comments>
		<pubDate>Sat, 03 Dec 2011 05:35:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[GDI]]></category>
		<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://www.pschierergraphics.com/professionalblog/?p=5</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
I&#8217;ve been playing more and more with the GDI in C# and it&#8217;s phenomenal .  One could write a book on it, but today I&#8217;ll stick with the basics.  We all have to start somewhere. All of my tutorials include additional resources &#8230; <a href="http://www.pschierergraphics.com/professionalblog/?p=5">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top: 60%;
left: 70px;
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;

padding-bottom:2px;
}


#bottomcontainerBox {
height: 30px;
width:50%;
padding-top:1px;
}

#bottomcontainerBox .buttons {
float:left;
height: 30px;
margin:4px 4px 4px 4px;
}

</style>
<p>I&#8217;ve been playing more and more with the GDI in C# and it&#8217;s phenomenal .  One could write a book on it, but today I&#8217;ll stick with the basics.  We all have to start somewhere.</p>
<p>All of my tutorials include additional resources at the end.  Check them out.  They&#8217;ve done me well .</p>
<p>Start up a new form and make sure you are including the drawing System.  That would be:</p>
<p><span style="color: #800000;">Using System.Drawing;</span></p>
<p>One important thing to remember with graphics:  Anything you draw erases when the form is minimized, moved off the screen, etc&#8230;It is not permanent.  There are two basic ways to keep them permanent.  I will discuss them both.</p>
<p>The first way is by using the Paint Event.  It&#8217;s very basic and easy to do.  You merely summon the event and write all your code inside it.  (Summon, hehe&#8230;I am in a geeky mood tonight.  Bare with me)</p>
<p><strong>To use the Paint Event:</strong></p>
<p>1.  Left click on the form</p>
<p>2. Click on the Properties toolbar</p>
<p>3.  Click on the lightning bolt button (also called the event button)</p>
<p>4.  Find the appearance tab and double click on Paint.  The program will switch to code view and your event has already been formed for you.  Just write all the code in there.</p>
<p>Ok, now we&#8217;re ready to do some coding!  My tutorial will now show up as comments in between the code as that will be easier to write.</p>
<p>//Let&#8217;s create our graphic object</p>
<p><span style="color: #800000;">Graphics newgraphic;</span></p>
<p><span style="color: #800000;">newgraphic = this.CreateGraphics();</span></p>
<p><span style="color: #800000;">//Now, we need to create a pen to work with. We set the color to red and the width to 5.</span></p>
<p><span style="color: #800000;">Pen myPen = new Pen(Color.Red, 5);</span></p>
<p><span style="color: #800000;">//And now we draw the line. We tell it what pen to use, the starting point of x and y, and the ending point of x and y</span></p>
<p><span style="color: #800000;">newgraphic.DrawLine(myPen, 10, 10, 200, 200);</span></p>
<p>Ok, go ahead and test it now.  You should see a red line on your new form.  Move the form around a bit if you&#8217;d like.  Your line is there to stay.  There are other shapes you can draw; an entire mess of them.  I&#8217;ll give you the code of one, but there are plenty more to explore.</p>
<p><span style="color: #800000;">// Draw a rectangle&#8230;rectangle coordinates are x, y, width, height</span></p>
<p><span style="color: #800000;">Graphics graphicsRect;</span><br />
<span style="color: #800000;">graphicsRect = this.CreateGraphics();</span><br />
<span style="color: #800000;">Pen mypen= new Pen(Color.Blue, 3);</span><br />
<span style="color: #800000;">Rectangle myRectangle = new Rectangle(10, 25, 150, 150);</span><br />
<span style="color: #800000;">graphicsRect.DrawRectangle(mypen, myRectangle);</span><br />
Other tools are DrawEllipse for a circle and DrawText for text.  Check my resources for more on those.</p>
<p>Now, onto Bitmaps. The paint event is all fine and dandy, but it doesn&#8217;t do well for more complicated images.  When you create a bitmap, you create a space to store your image and then you can call it when you need it.</p>
<p>Here we go!</p>
<p><span style="color: #800000;">//make sure you add Graphics to your resources</span></p>
<p><span style="color: #800000;">Using System.Graphics;</span></p>
<p><span style="color: #800000;">//In the partial class of your form (that&#8217;s the very top of the code, directly underpublic partial class Form2 : Form),</span></p>
<p><span style="color: #800000;">//you&#8217;ll want to declare your bitmap space</span></p>
<p><span style="color: #800000;">private Bitmap mybitmap;</span></p>
<p><span style="color: #000000;"><span style="color: #333300;">Now go back to the design space</span> a</span>nd create a picturebox.  You can find that under your tool bar.  Set the size to 200, 200. Position it where you&#8217;d like.</p>
<p>Double click on the form.  This will add a Form1_Load event.  The rest of your code goes inside there.</p>
<p><span style="color: #800000;">//Create your graphic object and call upon your bitmap.  The 200/200 are the width and height of your bitmap</span></p>
<p><span style="color: #800000;">Graphics newgraphic;</span></p>
<p><span style="color: #800000;">mybitmap = new bitmap(200, 200);</span></p>
<p><span style="color: #800000;">//Create your pen</span></p>
<p><span style="color: #800000;">Pen myPen = new Pen(Color.Plum, 3);</span></p>
<p><span style="color: #800000;">//Let&#8217;s draw an ellipse this time&#8230;parameters are x,y, width, height</span></p>
<p><span style="color: #800000;">newgraphic.DrawEllipse(myPen, 0, 50, 30, 20);</span></p>
<p><span style="color: #800000;">//Add your bitmap to your picture box.</span></p>
<p><span style="color: #800000;">pictureBox1.Image = myBitmap;</span></p>
<p><span style="color: #800000;">//And last, but not least, free up your resources.  This is very important!!!</span></p>
<p><span style="color: #800000;">newgraphic.Dispose();</span></p>
<p>Ok, now take a deep breath and give it a run.  You should be pleasantly surprised.  I hope this has been helpful in getting you started.  I know I absolutely loved using the graphics tool and look forward to learning more about it in the near future.</p>
<p>And, as promised, my resources:</p>
<p><a href="http://www.dreamincode.net/forums/showtopic67275.htm">http://www.dreamincode.net/forums/showtopic67275.htm</a></p>
<p><a href="http://www.techotopia.com/index.php/Drawing_Graphics_in_C_Sharp">http://www.techotopia.com/index.php/Drawing_Graphics_in_C_Sharp</a></p>
<p><a href="http://www.xtremedotnettalk.com/showthread.php?t=72975">http://www.xtremedotnettalk.com/showthread.php?t=72975</a></p>
<p><a href="http://www.csharptalk.com/2009/10/graphics-multimedia-and-printing.html">http://www.csharptalk.com/2009/10/graphics-multimedia-and-printing.htm</a></p>
<p>Oh, and one more thing you should know.  The graph that you&#8217;re drawing on is upside down.  Let&#8217;s say your bitmap is 200x by 200y.  X reads left to right.  so it&#8217;s 0-200, 0 being on the left and 200 being on the right.  Y reads from top to bottom, so 0 is on the top and 200 is on the bottom.  I&#8217;m sure it&#8217;s standard programming, but it&#8217;s new to me so I thought I&#8217;d throw that in there.</p>
<p>Good night everyone!  Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pschierergraphics.com/professionalblog/?feed=rss2&#038;p=5</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

