<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://mitov.com/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IGPGraphics.BeginContainer</id>
		<title>IGPGraphics.BeginContainer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://mitov.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IGPGraphics.BeginContainer"/>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;action=history"/>
		<updated>2026-04-19T16:53:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=48683&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=48683&amp;oldid=prev"/>
				<updated>2013-06-26T00:30:04Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:30, 26 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=45135&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=45135&amp;oldid=prev"/>
				<updated>2013-06-26T00:10:21Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:10, 26 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=42239&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=42239&amp;oldid=prev"/>
				<updated>2013-06-25T23:52:02Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:52, 25 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=39341&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=39341&amp;oldid=prev"/>
				<updated>2013-06-11T02:44:07Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 02:44, 11 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=36445&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=36445&amp;oldid=prev"/>
				<updated>2013-06-11T00:15:01Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:15, 11 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=33549&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=33549&amp;oldid=prev"/>
				<updated>2013-06-11T00:04:50Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:04, 11 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=30653&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=30653&amp;oldid=prev"/>
				<updated>2013-06-10T20:27:46Z</updated>
		
		<summary type="html">&lt;p&gt;Automated Syncronization with Documentation&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:27, 10 June 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	<entry>
		<id>https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=1456&amp;oldid=prev</id>
		<title>David Alm: Automated Syncronization with Documentation</title>
		<link rel="alternate" type="text/html" href="https://mitov.com/wiki/index.php?title=IGPGraphics.BeginContainer&amp;diff=1456&amp;oldid=prev"/>
				<updated>2011-11-22T00:15:45Z</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;
== Description ==&lt;br /&gt;
Call this method to begin a new graphics container.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
The following example sets a clipping region for a Graphics&lt;br /&gt;
object and begins a graphics container. It then sets an&lt;br /&gt;
additional clipping region for the container and draws&lt;br /&gt;
rectangles that demonstrate the effective clipping region&lt;br /&gt;
inside the container.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 var&lt;br /&gt;
   AGraphics : IGPGraphics;&lt;br /&gt;
   APath : GraphicsPath ;&lt;br /&gt;
   ABlackPen : IGPPen;&lt;br /&gt;
   AContainer : IGPGraphicsContainer;&lt;br /&gt;
 &lt;br /&gt;
 begin&lt;br /&gt;
   AGraphics := TGPGraphics.Create( ACanvas );&lt;br /&gt;
 &lt;br /&gt;
   // Set the clipping region for the Graphics object.&lt;br /&gt;
   AGraphics.SetClip(MakeRect(10, 10, 150, 150));&lt;br /&gt;
 &lt;br /&gt;
   // Begin a graphics container.&lt;br /&gt;
   AContainer = AGraphics.BeginContainer();&lt;br /&gt;
 &lt;br /&gt;
   // Set an additional clipping region for the container.&lt;br /&gt;
   AGraphics.SetClip( MakeRect( 100, 50, 100, 75 ));&lt;br /&gt;
 &lt;br /&gt;
   // Fill a red rectangle in the container.&lt;br /&gt;
   AGraphics.FillRectangle( TGPSolidBrush.Create( aclRed ), 0, 0, 400, 400);&lt;br /&gt;
 &lt;br /&gt;
   // End the container, and fill the same rectangle with blue.&lt;br /&gt;
   graphics.EndContainer( AContainer );&lt;br /&gt;
   AGraphics.FillRectangle( TGPSolidBrush.Create( aclBlue ), 0, 0, 400, 400);&lt;br /&gt;
 &lt;br /&gt;
   // Set the clipping region to infinite, and draw the outlines&lt;br /&gt;
   // of the two previous clipping regions.&lt;br /&gt;
   AGraphics.ResetClip();&lt;br /&gt;
   ABlack := TGPPen.Create( aclBlack, 2.0 );&lt;br /&gt;
   AGraphics.DrawRectangle( ABlack, 10, 10, 150, 150 );&lt;br /&gt;
   AGraphics.DrawRectangle( ABlack, 100, 50, 100, 75 );&lt;br /&gt;
 end;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remarks&lt;br /&gt;
Use this method to create nested graphics containers.&lt;br /&gt;
Graphics containers are used to retain graphics state, such&lt;br /&gt;
as transformations, clipping regions, and various rendering&lt;br /&gt;
properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The BeginContainer method returns a value of type&lt;br /&gt;
TGPGraphicsContainer. When you have finished using a&lt;br /&gt;
container, pass that value to the EndContainer method. The&lt;br /&gt;
TGPGraphicsContainer data type is defined in Gdiplusenums.h.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you call the BeginContainer method of a Graphics object,&lt;br /&gt;
an information block that holds the state of the Graphics&lt;br /&gt;
object is put on a stack. The BeginContainer method returns a&lt;br /&gt;
value that identifies that information block. When you pass&lt;br /&gt;
the identifying value to the EndContainer method, the&lt;br /&gt;
information block is removed from the stack and is used to&lt;br /&gt;
restore the Graphics object to the state it was in at the&lt;br /&gt;
time of the BeginContainer call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Containers can be nested; that is, you can call the&lt;br /&gt;
BeginContainer method several times before you call the&lt;br /&gt;
EndContainer method. Each time you call the BeginContainer&lt;br /&gt;
method, an information block is put on the stack, and you&lt;br /&gt;
receive an identifier for the information block. When you&lt;br /&gt;
pass one of those identifiers to the EndContainer method, the&lt;br /&gt;
Graphics object is returned to the state it was in at the&lt;br /&gt;
time of the BeginContainer call that returned that particular&lt;br /&gt;
identifier. The information block placed on the stack by that&lt;br /&gt;
BeginContainer call is removed from the stack, and all&lt;br /&gt;
information blocks placed on that stack after that&lt;br /&gt;
BeginContainer call are also removed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Calls to the Save method place information blocks on the same&lt;br /&gt;
stack as calls to the BeginContainer method. Just as an&lt;br /&gt;
EndContainer call is paired with a BeginContainer call, a&lt;br /&gt;
Restore call is paired with a Save call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Caution When you call EndContainer, all information blocks&lt;br /&gt;
placed on the stack (by Save or by BeginContainer) after the&lt;br /&gt;
corresponding call to BeginContainer are removed from the&lt;br /&gt;
stack. Likewise, when you call Restore, all information&lt;br /&gt;
blocks placed on the stack (by Save or by BeginContainer)&lt;br /&gt;
after the corresponding call to Save are removed from the&lt;br /&gt;
stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more information about graphics containers, see &amp;quot;Nested&lt;br /&gt;
Graphics Containers&amp;quot; on MSDN.&lt;/div&gt;</summary>
		<author><name>David Alm</name></author>	</entry>

	</feed>