mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
#import <FileAPI/Blob.idl>
 | 
						|
#import <HTML/ImageData.idl>
 | 
						|
 | 
						|
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#images-2
 | 
						|
[Exposed=(Window,Worker), Serializable, Transferable]
 | 
						|
interface ImageBitmap {
 | 
						|
    readonly attribute unsigned long width;
 | 
						|
    readonly attribute unsigned long height;
 | 
						|
    undefined close();
 | 
						|
};
 | 
						|
 | 
						|
// FIXME: This should also includes CanvasImageSource
 | 
						|
typedef (Blob or
 | 
						|
         ImageData) ImageBitmapSource;
 | 
						|
 | 
						|
enum ImageOrientation { "from-image", "flipY" };
 | 
						|
enum PremultiplyAlpha { "none", "premultiply", "default" };
 | 
						|
enum ColorSpaceConversion { "none", "default" };
 | 
						|
enum ResizeQuality { "pixelated", "low", "medium", "high" };
 | 
						|
 | 
						|
dictionary ImageBitmapOptions {
 | 
						|
    // FIXME: ImageOrientation imageOrientation = "from-image";
 | 
						|
    // FIXME: PremultiplyAlpha premultiplyAlpha = "default";
 | 
						|
    // FIXME: ColorSpaceConversion colorSpaceConversion = "default";
 | 
						|
    // FIXME: [EnforceRange] unsigned long resizeWidth;
 | 
						|
    // FIXME: [EnforceRange] unsigned long resizeHeight;
 | 
						|
    // FIXME: ResizeQuality resizeQuality = "low";
 | 
						|
};
 |