2012-10-22 21:08:52 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata
|
|
|
|
*
|
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.
|
|
|
|
* You are granted a license to use, reproduce and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
2014-01-28 17:04:40 +04:00
|
|
|
[Constructor(unsigned long sw, unsigned long sh),
|
2014-08-05 06:20:34 +04:00
|
|
|
Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh),
|
|
|
|
Exposed=(Window,Worker)]
|
2012-10-22 21:08:52 +04:00
|
|
|
interface ImageData {
|
2012-12-26 02:00:15 +04:00
|
|
|
[Constant]
|
2012-10-22 21:08:52 +04:00
|
|
|
readonly attribute unsigned long width;
|
2012-12-26 02:00:15 +04:00
|
|
|
[Constant]
|
2012-10-22 21:08:52 +04:00
|
|
|
readonly attribute unsigned long height;
|
2013-11-26 05:59:34 +04:00
|
|
|
[Constant, StoreInSlot]
|
2012-12-26 02:00:15 +04:00
|
|
|
readonly attribute Uint8ClampedArray data;
|
2012-10-22 21:08:52 +04:00
|
|
|
};
|