<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="function.xsl" ?>
<function-list>
  <function>
    <name>DrawInit Method</name>
    <description>Initializes the ASpriteCE control and optionally sets scrolling background size.</description>
    <syntax>Game1.DrawInit hwnd, iCustomWidth, iCustomHeight</syntax>
    <param-list>
      <param>
        <name>hwnd</name>
	    <description>Long. A valid handle of the form containing the ASpriteCE control. You can get this from Form.hwnd property.</description>
      </param>
      <param>
        <name>iCustomWidth</name>
	    <description>Integer. If you want to do a scrolling background, set this to the width of the entire background to scroll. Otherwise, just send 0 for this parameter.</description>
      </param>
      <param>
        <name>iCustomHeight</name>
	    <description>Integer. If you want to do a scrolling background, set this to the height of the entire background to scroll. Otherwise, just send 0 for this parameter.</description>
      </param>
    </param-list>
	<remarks>You must call DrawInit before any other methods. If you do not want a scrolling background, set CustomWidth and CustomHeight parameters to zero.</remarks>
	<example>
' Initialize - note we pass scrollable screen dimensions for a 640x480 map
Game1.DrawInit frmTiles.hWnd, 640, 480
	</example>
  </function>
</function-list>

