<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://mitov.com/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Method_function_IGDIPlus.IGPGraphics.ReleaseHDC%28HDC%29_%3A_TGPGraphics</id>
		<title>Method function IGDIPlus.IGPGraphics.ReleaseHDC(HDC) : TGPGraphics - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Method_function_IGDIPlus.IGPGraphics.ReleaseHDC%28HDC%29_%3A_TGPGraphics"/>
		<link rel="alternate" type="text/html" href="http://mitov.com/wiki/index.php?title=Method_function_IGDIPlus.IGPGraphics.ReleaseHDC(HDC)_:_TGPGraphics&amp;action=history"/>
		<updated>2026-04-23T12:01:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://mitov.com/wiki/index.php?title=Method_function_IGDIPlus.IGPGraphics.ReleaseHDC(HDC)_:_TGPGraphics&amp;diff=11656&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="http://mitov.com/wiki/index.php?title=Method_function_IGDIPlus.IGPGraphics.ReleaseHDC(HDC)_:_TGPGraphics&amp;diff=11656&amp;oldid=prev"/>
				<updated>2012-10-18T17:18:59Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
This is a Beta Read Only version of this page. &lt;br /&gt;
Please review and send recommendations to [mailto:mitov@mitov.com mitov@mitov.com]. &lt;br /&gt;
We will enable the editing as soon as we are happy with the overall Wiki site.&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Class:''' [[Interface IGDIPlus.IGPGraphics|IGPGraphics]]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
=== Delphi: ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
'''function''' ReleaseHDC( hdc : HDC ) : [[Class IGDIPlus.TGPGraphics|TGPGraphics]];&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== C++ Builder: ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[[Class IGDIPlus.TGPGraphics|TGPGraphics]] '''__fastcall''' ReleaseHDC( HDC hdc );&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Visual C++ (MFC): ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 ReleaseHDC(  hdc );&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
Releases a device context handle obtained by a previous call to the [[Class IGDIPlus.TGPGraphics|TGPGraphics]].[[Method function IGDIPlus.IGPGraphics.GetHDC() : HDC|GetHDC]] method of this Graphics object. &lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Call this method to release a device context handle obtained&lt;br /&gt;
 by a previous call to the [[Class IGDIPlus.TGPGraphics|TGPGraphics]].[[Method function IGDIPlus.IGPGraphics.GetHDC() : HDC|GetHDC]] method of this&lt;br /&gt;
 Graphics object.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;b&amp;gt;Example:&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 The following function has a pointer to a Graphics object as&lt;br /&gt;
 its only parameter. The function calls Graphics::[[Method function IGDIPlus.IGPGraphics.GetHDC() : HDC|GetHDC]] to&lt;br /&gt;
 get a handle to the device context associated with the&lt;br /&gt;
 Graphics object and then passes that device context handle to&lt;br /&gt;
 the Microsoft Windows Graphics Device Interface&lt;br /&gt;
 (GDI)Rectangle function. The call to ReleaseHDC releases the&lt;br /&gt;
 device context handle.&lt;br /&gt;
 &amp;lt;code lang=&amp;quot;delphi&amp;quot;&amp;gt;&lt;br /&gt;
   AGraphics-&amp;gt;[[Method function IGDIPlus.IGPGraphics.DrawEllipse(IGPPen;TGPRect) : TGPGraphics|DrawEllipse]]( [[Class IGDIPlus.TGPPen|TGPPen]].Create( aclBlue ), 10, 10, 100, 50);  // GDI+&lt;br /&gt;
 &lt;br /&gt;
   AHdc = AGraphics-&amp;gt;[[Method function IGDIPlus.IGPGraphics.GetHDC() : HDC|GetHDC]]();&lt;br /&gt;
 &lt;br /&gt;
     // Make GDI calls, but don't call any methods&lt;br /&gt;
     // on g until after the call to ReleaseHDC.&lt;br /&gt;
     Rectangle( AHdc, 120, 10, 220, 60);  // GDI&lt;br /&gt;
 &lt;br /&gt;
   AGraphics-&amp;gt;ReleaseHDC(AHdc);&lt;br /&gt;
 &lt;br /&gt;
   // [[Enum item IGDIPlus.TGPStatus.Ok|Ok]] to call methods on g again.&lt;br /&gt;
   AGraphics-&amp;gt;[[Method function IGDIPlus.IGPGraphics.DrawLine(IGPPen;Integer;Integer;Integer;Integer) : TGPGraphics|DrawLine]]( [[Class IGDIPlus.TGPPen|TGPPen]].Create( aclRed ), 240, 10, 340, 60);&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	</feed>