mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			670 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			670 B
		
	
	
	
		
			Text
		
	
	
	
	
	
// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
 | 
						|
 | 
						|
enum PredefinedColorSpace { "srgb", "display-p3" };
 | 
						|
 | 
						|
dictionary ImageDataSettings {
 | 
						|
    PredefinedColorSpace colorSpace;
 | 
						|
};
 | 
						|
 | 
						|
[Exposed=(Window,Worker), Serializable]
 | 
						|
interface ImageData {
 | 
						|
    constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
 | 
						|
    constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
 | 
						|
    readonly attribute unsigned long width;
 | 
						|
    readonly attribute unsigned long height;
 | 
						|
    readonly attribute Uint8ClampedArray data;
 | 
						|
    readonly attribute PredefinedColorSpace colorSpace;
 | 
						|
};
 |