<?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>Vdiscussion &#187; GDI</title>
	<atom:link href="http://vdiscussion.com/tag/gdi/feed/" rel="self" type="application/rss+xml" />
	<link>http://vdiscussion.com</link>
	<description>Vinoth Kumar&#039;s Discussion</description>
	<lastBuildDate>Wed, 09 Dec 2009 15:34:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>An Introduction to GDI</title>
		<link>http://vdiscussion.com/an-introduction-to-gdi/</link>
		<comments>http://vdiscussion.com/an-introduction-to-gdi/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 16:31:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Theory Subjects]]></category>
		<category><![CDATA[Visual Programming]]></category>
		<category><![CDATA[GDI]]></category>
		<category><![CDATA[TextOut()]]></category>

		<guid isPermaLink="false">http://vdiscussion.com/?p=4</guid>
		<description><![CDATA[TextOut(), GDI, TextOut (hdc, x, y, psText, iLength) ;]]></description>
			<content:encoded><![CDATA[<p><strong>Graphics Device  Interface (GDI)</strong> functions is used to paint the client area of your window. Windows provides several GDI functions for writing  text strings to the client area of the window. The most commonly used text output function is undoubtedly <em>TextOut</em>. This  function has the following format:</p>
<p><strong>TextOut (hdc, x, y, psText, iLength) ;</strong></p>
<p><strong>Explanatation:</strong></p>
<p><em>TextOut</em> writes a character string to the client area of the window.<em><br />
</em><em>hdc</em> argument is a &#8220;handle to a device context,&#8221; and it is an important part of GDI. Virtually every GDI function requires this handle as the first argument to the function.<br />
<em>x</em> and <em>y</em> arguments define the starting position of the character  string in the client area.<br />
The <em>psText</em> argument is a pointer to the character string.<br />
<em>iLength</em> is the length of the string in characters.</p>
<p><strong>More About GDI:(Wiki)</strong></p>
<p>The Graphics Device Interface (GDI) is a Microsoft Windows application programming interface and core operating system component responsible for representing graphical objects and transmitting them to output devices such as monitors and printers.</p>
<p>GDI is responsible for tasks such as drawing lines and curves, rendering fonts and handling palettes. It is not directly responsible for drawing windows, menus, etc.; that task is reserved for the user subsystem, which resides in user32.dll and is built atop GDI. GDI is similar to Macintosh&#8217;s QuickDraw.</p>
<p>Perhaps the most significant capability of GDI over more direct methods of accessing the hardware is its scaling capabilities, and abstraction of target devices. Using GDI, it is very easy to draw on multiple devices, such as a screen and a printer, and expect proper reproduction in each case. This capability is at the center of all What You See Is What You Get applications for Microsoft Windows.</p>
<p>Simple games which do not require fast graphics rendering use GDI. However, GDI cannot animate properly (no notion of synchronizing with the framebuffer) and lacks rasterization for 3D. Modern games tend to use DirectX or OpenGL, which give programmers the capabilities to use features of modern hardware.</p>
]]></content:encoded>
			<wfw:commentRss>http://vdiscussion.com/an-introduction-to-gdi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
