mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:22:46 +00:00 
			
		
		
		
	 955eef83b0
			
		
	
	
		955eef83b0
		
	
	
	
	
		
			
			This allows you to serialize a <canvas> element's bitmap into a data: URI. Pretty neat! :^)
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			291 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			291 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| interface HTMLCanvasElement : HTMLElement {
 | |
| 
 | |
|     CanvasRenderingContext2D? getContext(DOMString contextId);
 | |
|     readonly attribute unsigned long width;
 | |
|     readonly attribute unsigned long height;
 | |
| 
 | |
|     USVString toDataURL(optional DOMString type = "image/png", optional double quality);
 | |
| 
 | |
| };
 |