Lines Matching refs:imageData
21 var imageData = canvas_context.getImageData(0, 0, canvas.width,
23 callback(imageData);
28 function verifyImageData(imageData, iconSize) {
35 if (!('width' in imageData) ||
36 !('height' in imageData) ||
37 !('data' in imageData)) {
39 'The imageData property must contain an ImageData object or' +
43 if (imageData.width > iconSize ||
44 imageData.height > iconSize) {
46 'The imageData property must contain an ImageData object that ' +
58 * The callback function to pass processed imageData back to. Note that this
72 if ('imageData' in details) {
76 if (sizeKey in details.imageData) {
77 verifyImageData(details.imageData[sizeKey], iconSizes[i]);
83 // If details.imageData is not dictionary with keys in set {'19', '38'},
86 var imageData = details.imageData;
87 details.imageData = {};
88 details.imageData[sizeKey] = imageData;
89 verifyImageData(details.imageData[sizeKey], iconSizes[0]);
97 details.imageData = {};
114 function(imageData) {
115 details.imageData[sizeKey] = imageData;
122 details.imageData = {};
124 function(imageData) {
125 details.imageData[sizeKey] = imageData;
133 throw new Error('Either the path or imageData property must be specified.');