Содержание

getElementImage

Returns the image of the specified element.

Syntax

getElementImage = function(aElement);

Parameters

Returned value

Examples

  1. //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]));