<?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 3 (Advanced API)</title>
	<atom:link href="http://www.tannerhelland.com/42/vb-graphics-programming-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/</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: Agustinus Cao</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-2663</link>
		<dc:creator>Agustinus Cao</dc:creator>
		<pubDate>Fri, 27 Jan 2012 09:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-2663</guid>
		<description>This is a very good technique. I am using this Advanced API for my program, and it works really fast. I am only using an old laptop with Pentium 4 2.40 GHZ, a very standard graphic card, and only 500 MB RAM with Windows XP Operating System, so I consider my computer is quite slow compared to computers today.

I am developing a program for textile design which involved calculations on how many yarns used, how each colors of the yarns are configured in the finished fabric, what type of weaving pattern to use, etc. In short, there are a lot of calculations involved just to put a single pixel in a picture box, but I can display a complete 575 x 487 pixels image in less then 20 milliseconds using the Advanced API.

Thank you Tanner.</description>
		<content:encoded><![CDATA[<p>This is a very good technique. I am using this Advanced API for my program, and it works really fast. I am only using an old laptop with Pentium 4 2.40 GHZ, a very standard graphic card, and only 500 MB RAM with Windows XP Operating System, so I consider my computer is quite slow compared to computers today.</p>
<p>I am developing a program for textile design which involved calculations on how many yarns used, how each colors of the yarns are configured in the finished fabric, what type of weaving pattern to use, etc. In short, there are a lot of calculations involved just to put a single pixel in a picture box, but I can display a complete 575 x 487 pixels image in less then 20 milliseconds using the Advanced API.</p>
<p>Thank you Tanner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avi</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-2119</link>
		<dc:creator>avi</dc:creator>
		<pubDate>Sat, 12 Mar 2011 13:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-2119</guid>
		<description>Hi Tenner.
Very good and very helpful turorial.
A few comments

in this part you wrote &quot;rotate the data 180 degrees&quot; it doesn&#039;t rotate it. It is reflected on the X axis. So the picture point(i,j) in the memory is 
point(i,picture1.scaleheight-j).

About the color if you want to update the RGB of pixel you to do it BRG.

Because if i have 32 bit computer the array of array 3D di in DIB is a little bit chaotic. So you change one pixel easily because you don&#039;t know it&#039;s RGB.

Good tip about the 2D array.

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi Tenner.<br />
Very good and very helpful turorial.<br />
A few comments</p>
<p>in this part you wrote &#8220;rotate the data 180 degrees&#8221; it doesn&#8217;t rotate it. It is reflected on the X axis. So the picture point(i,j) in the memory is<br />
point(i,picture1.scaleheight-j).</p>
<p>About the color if you want to update the RGB of pixel you to do it BRG.</p>
<p>Because if i have 32 bit computer the array of array 3D di in DIB is a little bit chaotic. So you change one pixel easily because you don&#8217;t know it&#8217;s RGB.</p>
<p>Good tip about the 2D array.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joaquim</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-949</link>
		<dc:creator>Joaquim</dc:creator>
		<pubDate>Sun, 15 Nov 2009 22:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-949</guid>
		<description>can i use the GetBitmapBits and SetBitmapBits in array with 2 dimensions?
Instead work with RGBA, can we work with color value?
(has we know: in a picturebox ColorValue = Picture1.Point(X,Y))</description>
		<content:encoded><![CDATA[<p>can i use the GetBitmapBits and SetBitmapBits in array with 2 dimensions?<br />
Instead work with RGBA, can we work with color value?<br />
(has we know: in a picturebox ColorValue = Picture1.Point(X,Y))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Stillen</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-661</link>
		<dc:creator>Steven Stillen</dc:creator>
		<pubDate>Fri, 24 Jul 2009 14:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-661</guid>
		<description>I wish someone could help me. I have been porting my windows application to Linux native program that will run as a stand alone not within Wine programs. Part of my program is supposed to print Forms or windows. It fails and fews procedures or functions are not supported but are under Microsoft - GetDIBitSizes, GetDIBits...I am frustrated. I have been looking for some other ways of prints the forms programmatically, but I have been coming empty handed. They are all
located in winapih.inc. Delphi to Lazarus.</description>
		<content:encoded><![CDATA[<p>I wish someone could help me. I have been porting my windows application to Linux native program that will run as a stand alone not within Wine programs. Part of my program is supposed to print Forms or windows. It fails and fews procedures or functions are not supported but are under Microsoft &#8211; GetDIBitSizes, GetDIBits&#8230;I am frustrated. I have been looking for some other ways of prints the forms programmatically, but I have been coming empty handed. They are all<br />
located in winapih.inc. Delphi to Lazarus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanner</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-387</link>
		<dc:creator>Tanner</dc:creator>
		<pubDate>Thu, 26 Feb 2009 16:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-387</guid>
		<description>Yikes!  You&#039;re right!  When I transferred this tutorial from plain HTML to WordPress, WordPress must have considered the backslash an escape character.  It&#039;s now fixed.

Glad the tutorial has been useful, and thanks again for the tip!</description>
		<content:encoded><![CDATA[<p>Yikes!  You&#8217;re right!  When I transferred this tutorial from plain HTML to WordPress, WordPress must have considered the backslash an escape character.  It&#8217;s now fixed.</p>
<p>Glad the tutorial has been useful, and thanks again for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Eldred</title>
		<link>http://www.tannerhelland.com/42/vb-graphics-programming-3/comment-page-1/#comment-386</link>
		<dc:creator>Ian Eldred</dc:creator>
		<pubDate>Thu, 26 Feb 2009 14:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thehellands.com/vb/?p=9#comment-386</guid>
		<description>This tutorial is really helping me. Thanks very much!

My only comment is that there is a big red warning about the ReDim statement being where you can screw your computer up, but in the code snippet, the ReDim statement is wrong.

ReDim ImageData(0 To (bm.bmBitsPixel  8) - 1, 0 To bm.bmWidth - 1, 0 To bm.bmHeight - 1)

Should be:

ReDim ImageData(0 To (bm.bmBitsPixel / 8) - 1, 0 To bm.bmWidth - 1, 0 To bm.bmHeight - 1)</description>
		<content:encoded><![CDATA[<p>This tutorial is really helping me. Thanks very much!</p>
<p>My only comment is that there is a big red warning about the ReDim statement being where you can screw your computer up, but in the code snippet, the ReDim statement is wrong.</p>
<p>ReDim ImageData(0 To (bm.bmBitsPixel  8) &#8211; 1, 0 To bm.bmWidth &#8211; 1, 0 To bm.bmHeight &#8211; 1)</p>
<p>Should be:</p>
<p>ReDim ImageData(0 To (bm.bmBitsPixel / 8) &#8211; 1, 0 To bm.bmWidth &#8211; 1, 0 To bm.bmHeight &#8211; 1)</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 5/18 queries in 0.035 seconds using disk: basic

Served from: www.tannerhelland.com @ 2012-02-10 12:32:33 -->
