package js.html
Available on jsThe
ImageData
interface represents the underlying pixel data of an area of acanvas
element. It is created using theImageData()
constructor or creator methods on theCanvasRenderingContext2D
object associated with a canvas:createImageData()
andgetImageData()
. It can also be used to set a part of the canvas by usingputImageData()
.Documentation ImageData by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (data:Uint8ClampedArray, sw:Int, ?sh:Int)
new (sw:Int, sh:Int)
Throws:
null |
DOMError |
---|
read only data:Uint8ClampedArray
Is a Uint8ClampedArray
representing a one-dimensional array containing the data in the RGBA order, with integer values between 0
and 255
(included).
read only height:Int
Is an unsigned
long
representing the actual height, in pixels, of the ImageData
.
read only width:Int
Is an unsigned
long
representing the actual width, in pixels, of the ImageData
.
© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/ImageData.html