Lines Matching refs:height
1 function ImageData(arr, width, height) {
2 if (!width || height === 0) {
3 throw 'invalid dimensions, width and height must be non-zero';
8 height = height || arr.length/(4*width);
14 Object.defineProperty(this, 'height', {
15 value: height,
27 var height = arguments[1];
28 var byteLength = 4 * width * height;
30 width, height);
37 var height = arguments[2];
44 if (height && (height !== (arr / (width * 4)))) {
45 throw 'invalid height given';
47 height = arr / (width * 4);
48 return new ImageData(arr, width, height);