<html><head>
	<META http-equiv="content-type" content="text/html; charset=utf-8">
	<title>graphicsbuffer</title>
	</head><body>
	<h1>graphicsbuffer</h1>
	<!-- Generated by Ddoc from graphicsbuffer.d -->
<br><br>
<dl><dt><big>struct <u>ResizableGraphicsBuffer</u>;
</big></dt>
<dd>Resizable graphics buffer.
<br><br>

<dl><dt><big>void <u>start</u>(int <i>width</i>, int <i>height</i>);
<br>void <u>start</u>(Size <i>size</i>);
</big></dt>
<dd>Start the graphics buffer with its initialial dimensions. The initial bits of the graphics buffer are undefined.
<br><br>

</dd>
<dt><big>Graphics <u>graphics</u>();
</big></dt>
<dd>Get the <u>graphics</u> buffer's Graphics to draw on.
<br><br>

</dd>
<dt><big>bool <u>copyTo</u>(Graphics <i>g</i>);
<br>bool <u>copyTo</u>(Graphics <i>g</i>, Rect <i>clipRect</i>);
</big></dt>
<dd>Copy the graphics buffer bits to the provided Graphics.
<br><br>

</dd>
<dt><big>void <u>stop</u>();
</big></dt>
<dd>Stop the graphics buffer by releasing resources.
<br><br>

</dd>
<dt><big>bool <u>resize</u>(int <i>width</i>, int <i>height</i>);
<br>void <u>resize</u>(Size <i>size</i>);
</big></dt>
<dd>Update the dimensions of the graphics buffer.
<br><br>
<b>Returns:</b><br>
<b>true</b> if the entire area needs to be redrawn and the bits of the graphics buffer are undefined.
<br><br>

</dd>
<dt><big>Graphics <u>graphicsBuffer</u>();
</big></dt>
<dd><b>Property:</b><br>
get the graphics buffer.
<br><br>

</dd>
<dt><big>int <u>width</u>();
<br>int <u>height</u>();
<br>Size  <u>size</u>();
</big></dt>
<dd><b>Property:</b><br>
get the dimensions of the graphics buffer.
<br><br>

</dd>
</dl>
</dd>
<dt><big>template <u>ControlFixedGraphicsBuffer</u>()</big></dt>
<dd>Mixin for a fixed-size, double buffer Control. ControlStyles ALL_PAINTING_IN_WM_PAINT and USER_PAINT must be set.
<br><br>

<dl><dt><big>void <u>onBufferPaint</u>(PaintEventArgs <i>ea</i>);
</big></dt>
<dd>Override to draw onto the graphics buffer.
<br><br>

</dd>
<dt><big>void <u>updateGraphics</u>(Rect <i>area</i>);
<br>void <u>updateGraphics</u>();
</big></dt>
<dd>Updates the double buffer by calling onBufferPaint() and fires a screen-redraw event.
<br><br>

</dd>
<dt><big>Graphics <u>graphicsBuffer</u>();
</big></dt>
<dd><b>Property:</b><br>
get the graphics buffer. May be <b>null</b> if there is no need for a graphics buffer yet.
<br><br>

 invalidate() can be used to fire a screen-redraw event.
<br><br>

</dd>
<dt><big>void <u>dispose</u>();
</big></dt>
<dd><br><br>
</dd>
</dl>
</dd>
<dt><big>template <u>ControlResizableGraphicsBuffer</u>()</big></dt>
<dd>Mixin for a variable-size, double buffer Control. ControlStyles ALL_PAINTING_IN_WM_PAINT and USER_PAINT must be set.
<br><br>

<dl><dt><big>void <u>onBufferPaint</u>(PaintEventArgs <i>ea</i>);
</big></dt>
<dd>Override to draw onto the graphics buffer.
<br><br>

</dd>
<dt><big>void <u>updateGraphics</u>(Rect <i>area</i>);
<br>void <u>updateGraphics</u>();
</big></dt>
<dd>Updates the double buffer by calling onBufferPaint() and fires a screen-redraw event.
<br><br>

</dd>
<dt><big>Graphics <u>graphicsBuffer</u>();
</big></dt>
<dd><b>Property:</b><br>
get the graphics buffer. May be <b>null</b> if there is no need for a graphics buffer yet.
<br><br>

 invalidate() can be used to fire a screen-redraw event.
<br><br>

</dd>
<dt><big>void <u>dispose</u>();
</big></dt>
<dd><br><br>
</dd>
</dl>
</dd>
<dt><big>class <u>DoubleBufferedForm</u>: dfl.form.Form;
</big></dt>
<dd>Mixes in ControlResizableGraphicsBuffer and sets the appropriate styles.
<br><br>
<b>Example:</b><br>
<pre class="d_code"><font color=blue>private</font> <font color=blue>import</font> dfl.all
<font color=blue>private</font> <font color=blue>import</font> graphicsbuffer;

<font color=blue>class</font> MyForm: <u>DoubleBufferedForm</u>
{
	<font color=blue>protected</font> <font color=blue>override</font> <font color=blue>void</font> onBufferPaint(PaintEventArgs ea)
	{
		<font color=blue>super</font>.onBufferPaint(ea); <font color=green>// Fills the background color.
</font>
		<font color=green>// Other painting and drawing to ea.graphics...
</font>	}
}

<font color=blue>void</font> main()
{
	Application.run(<font color=blue>new</font> MyForm());
}
</pre>
<br><br>

<dl></dl>
</dd>
<dt><big>class <u>DoubleBufferedControl</u>: dfl.usercontrol.UserControl;
</big></dt>
<dd>Mixes in ControlResizableGraphicsBuffer and sets the appropriate styles.
<br><br>

<dl></dl>
</dd>
</dl>

	<hr><small>Page generated by <a href="http://www.digitalmars.com/d/ddoc.html">Ddoc</a>. </small>
	</body></html>
