summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/imagebitmap/image_bitmap_options.idl
blob: e88342cb8e2cc466fbb9f7e2f1611a84f6b40596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://html.spec.whatwg.org/C/#imagebitmapoptions

enum ImageOrientation { "none", "flipY" };
enum ImageBitmapPixelFormat { "default", "uint8" };
enum PremultiplyAlpha { "none", "premultiply", "default" };
enum ColorSpaceConversion { "none", "default" };
enum ResizeQuality { "pixelated", "low", "medium", "high" };
dictionary ImageBitmapOptions {
    ImageOrientation imageOrientation = "none";
    [RuntimeEnabled=CanvasColorManagement] ImageBitmapPixelFormat imagePixelFormat = "default";
    PremultiplyAlpha premultiplyAlpha = "default";
    ColorSpaceConversion colorSpaceConversion = "default";
    [EnforceRange] unsigned long resizeWidth;
    [EnforceRange] unsigned long resizeHeight;
    ResizeQuality resizeQuality = "low";
};