d><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function cacheToBitmap(bitmap:BitmapData, drawingLayer:Sprite):void</code><p></p><p></p><p>
       The <code>cacheToBitmap</code> method will write the drawing layer to the cavnas bitmap.
              </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">bitmap</span>:BitmapData</code> &mdash; Bitmap to draw.
       </