2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-10-22 21:08:52 +04:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
2019-09-12 14:01:17 +03:00
|
|
|
[Exposed=(Window,Worker),
|
2019-06-25 09:44:38 +03:00
|
|
|
Serializable]
|
2012-10-22 21:08:52 +04:00
|
|
|
interface ImageData {
|
2019-09-12 14:01:17 +03:00
|
|
|
[Throws]
|
|
|
|
constructor(unsigned long sw, unsigned long sh);
|
|
|
|
[Throws]
|
|
|
|
constructor(Uint8ClampedArray data, unsigned long sw,
|
|
|
|
optional unsigned long sh);
|
|
|
|
|
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
|
|
|
};
|