<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: VB Graphics Programming: Part 2 (Beginning API)</title>
	<atom:link href="http://www.tannerhelland.com/41/vb-graphics-programming-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/</link>
	<description>Home of the award-winning author, VG composer, and programmer</description>
	<lastBuildDate>Thu, 09 Feb 2012 02:43:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tanner</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-2251</link>
		<dc:creator>Tanner</dc:creator>
		<pubDate>Tue, 24 May 2011 14:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-2251</guid>
		<description>Thanks for the comments, Devant.  However, AutoRedraw does &lt;em&gt;not&lt;/em&gt; need to be set to true for the examples to work.  In fact, when AutoRedraw is set to false, the image will be updated every time SetPixelV is used (which isn&#039;t ideal for performance, but is useful for checking to see if your code is working).  If you set AutoRedraw to true, please note that any changes made by SetPixelV are made to the picture box&#039;s &lt;em&gt;.Image&lt;/em&gt; property, not the &lt;em&gt;.Picture&lt;/em&gt; property.  So, when you&#039;re done running SetPixelV, you will need to add a line like &lt;em&gt;Picture1.Picture = Picture1.Image&lt;/em&gt; followed by &lt;em&gt;Picture1.Refresh&lt;/em&gt; to force an update to the screen.

You can check this very easily on the downloadable code for this article - simply change the picture box&#039;s .AutoRedraw property to false and watch what happens.</description>
		<content:encoded><![CDATA[<p>Thanks for the comments, Devant.  However, AutoRedraw does <em>not</em> need to be set to true for the examples to work.  In fact, when AutoRedraw is set to false, the image will be updated every time SetPixelV is used (which isn&#8217;t ideal for performance, but is useful for checking to see if your code is working).  If you set AutoRedraw to true, please note that any changes made by SetPixelV are made to the picture box&#8217;s <em>.Image</em> property, not the <em>.Picture</em> property.  So, when you&#8217;re done running SetPixelV, you will need to add a line like <em>Picture1.Picture = Picture1.Image</em> followed by <em>Picture1.Refresh</em> to force an update to the screen.</p>
<p>You can check this very easily on the downloadable code for this article &#8211; simply change the picture box&#8217;s .AutoRedraw property to false and watch what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devant</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-2250</link>
		<dc:creator>Devant</dc:creator>
		<pubDate>Tue, 24 May 2011 08:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-2250</guid>
		<description>I found the solution to the problem. Picture1 had Autoredraw set to False. It worked when I set it to True.

Maybe you would like to point out that Autoredraw has to be set to True for the examples to work. Thanks for the excellent tutorial.</description>
		<content:encoded><![CDATA[<p>I found the solution to the problem. Picture1 had Autoredraw set to False. It worked when I set it to True.</p>
<p>Maybe you would like to point out that Autoredraw has to be set to True for the examples to work. Thanks for the excellent tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devant</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-2249</link>
		<dc:creator>Devant</dc:creator>
		<pubDate>Tue, 24 May 2011 08:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-2249</guid>
		<description>Greetings,

It seems that I can&#039;t load the GDI32.dll

Things I did:

1.

Public Declare Function SetPixelV Lib &quot;GDI32&quot; (...)

Public Declare Function SetPixelV Lib &quot;C:\Windows\System32\GDI32.dll&quot; (...)

Didn&#039;t produce any error, but they wouldn&#039;t effect the Picture1 too. 

(with

SetPixelV Picture1.hDC, i, j, RGB(255, 0, 0)

)

2.

Trying to put a reference to GDI32.dll (Project-&gt;References) produced a &quot;Can&#039;t add a reference to the specified file.&quot; error.

3.

Trying to repair the GDI32.dll with a fresh copy didn&#039;t change anything.

4.

Trying to put a fresh copy on another directory, and referencing/declaring the function from there, produced a &quot;File not found&quot; error.</description>
		<content:encoded><![CDATA[<p>Greetings,</p>
<p>It seems that I can&#8217;t load the GDI32.dll</p>
<p>Things I did:</p>
<p>1.</p>
<p>Public Declare Function SetPixelV Lib &#8220;GDI32&#8243; (&#8230;)</p>
<p>Public Declare Function SetPixelV Lib &#8220;C:\Windows\System32\GDI32.dll&#8221; (&#8230;)</p>
<p>Didn&#8217;t produce any error, but they wouldn&#8217;t effect the Picture1 too. </p>
<p>(with</p>
<p>SetPixelV Picture1.hDC, i, j, RGB(255, 0, 0)</p>
<p>)</p>
<p>2.</p>
<p>Trying to put a reference to GDI32.dll (Project-&gt;References) produced a &#8220;Can&#8217;t add a reference to the specified file.&#8221; error.</p>
<p>3.</p>
<p>Trying to repair the GDI32.dll with a fresh copy didn&#8217;t change anything.</p>
<p>4.</p>
<p>Trying to put a fresh copy on another directory, and referencing/declaring the function from there, produced a &#8220;File not found&#8221; error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leveleditor6680</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-1675</link>
		<dc:creator>leveleditor6680</dc:creator>
		<pubDate>Thu, 29 Jul 2010 16:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-1675</guid>
		<description>Never mind, I figured it out!
Here&#039;s the code in case your wondering...
Code is Visual Basic 2008:
&lt;code&gt;
&#039; get hdc...
Dim g As Graphics = Graphics.FromImage(ThePicturebox.Image)
Dim dc As System.IntPtr = g.GetHdc()
&#039; do something with the hdc...
Dim SomeNameHere As Image = Image.FromHbitmap(dc)

&#039;release...
g.ReleaseHdc(dc)
g.Dispose()
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Never mind, I figured it out!<br />
Here&#8217;s the code in case your wondering&#8230;<br />
Code is Visual Basic 2008:<br />
<code><br />
' get hdc...<br />
Dim g As Graphics = Graphics.FromImage(ThePicturebox.Image)<br />
Dim dc As System.IntPtr = g.GetHdc()<br />
' do something with the hdc...<br />
Dim SomeNameHere As Image = Image.FromHbitmap(dc)</p>
<p>'release...<br />
g.ReleaseHdc(dc)<br />
g.Dispose()<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leveleditor6680</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-1674</link>
		<dc:creator>leveleditor6680</dc:creator>
		<pubDate>Thu, 29 Jul 2010 00:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-1674</guid>
		<description>Hello,

I would like to know how to use something similar to the &quot;.hdc&quot; in visual basic 2008!

Even links are helpful!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I would like to know how to use something similar to the &#8220;.hdc&#8221; in visual basic 2008!</p>
<p>Even links are helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanner</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-1637</link>
		<dc:creator>Tanner</dc:creator>
		<pubDate>Mon, 04 Jan 2010 21:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-1637</guid>
		<description>Hi MRFARAG.  The following link should provide what you need:

&lt;a href=&quot;http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=38582&amp;lngWId=1&quot; rel=&quot;nofollow&quot;&gt;http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=38582&amp;lngWId=1&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi MRFARAG.  The following link should provide what you need:</p>
<p><a  href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=38582&#038;lngWId=1" rel="nofollow">http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=38582&#038;lngWId=1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrFarag</title>
		<link>http://www.tannerhelland.com/41/vb-graphics-programming-2/comment-page-1/#comment-983</link>
		<dc:creator>MrFarag</dc:creator>
		<pubDate>Mon, 04 Jan 2010 00:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=8#comment-983</guid>
		<description>plese
i want to draw a very smooth line or circle by vb6 can i ?
the line is bad in vb6 but in microsoft word it is smooth 
and i want to write a word text like that in microsoft word 
I cant do ?
I think i must to go another langauge
can you help
thanks</description>
		<content:encoded><![CDATA[<p>plese<br />
i want to draw a very smooth line or circle by vb6 can i ?<br />
the line is bad in vb6 but in microsoft word it is smooth<br />
and i want to write a word text like that in microsoft word<br />
I cant do ?<br />
I think i must to go another langauge<br />
can you help<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 9/22 queries in 0.026 seconds using disk: basic

Served from: www.tannerhelland.com @ 2012-02-10 12:37:08 -->
