getElementImage
Returns the image of the specified element.
Syntax
getElementImage = function(aElement);
Parameters
- aElement
- functions: element, the image of which is necessary to obtain
Returned value
- functions: image of the specified element
Examples
//Loading page with image (in this case - a captcha) loadURI('http://www.google.com/recaptcha/learnmore'); //Obtain an element that contains an image var imageElement = getElement('img',0,['src'],['google.com/recaptcha/']); //Obtain an image of the element var image = getElementImage(imageElement); //Output to the log pixel color with coordinates (10,10) log(IntToStr(image.pixels[10][10]));