Functions / canvas toDataURL
toDataURL(type)
toDataURL( )
toDataURL(string type)

toDataURL( )
return: string dataURL
Code
<script type="text/javascript">
	function start_1(idCanvas)
	{
		alert(jc.canvas("canvas_1").toDataURL());
	}
	function stop_1(idCanvas)
	{
		alert(jc.canvas("canvas_1").toDataURL());
	}
	function onload_1(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.circle(40,40,40,'#00FFFF',1);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
toDataURL(string type)
return: string dataURL
Code
<script type="text/javascript">
	function start_2(idCanvas)
	{
		alert(jc.canvas("canvas_2")
			.toDataURL('image/jpeg'));
	}
	function stop_2(idCanvas)
	{
		alert(jc.canvas("canvas_2")
			.toDataURL());
	}
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.circle(40,40,40,'#00FFFF',1);
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View