chromium/third_party/blink/renderer/core/imagebitmap/image_bitmap_options.idl

// Copyright 2016 The Chromium Authors
// 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 { "from-image", "none", "flipY"};
enum PremultiplyAlpha { "none", "premultiply", "default" };
enum ColorSpaceConversion { "none", "default" };
enum ResizeQuality { "pixelated", "low", "medium", "high" };
dictionary ImageBitmapOptions {
    ImageOrientation imageOrientation = "from-image";
    PremultiplyAlpha premultiplyAlpha = "default";
    ColorSpaceConversion colorSpaceConversion = "default";
    [EnforceRange] unsigned long resizeWidth;
    [EnforceRange] unsigned long resizeHeight;
    ResizeQuality resizeQuality = "low";
};