$characterSet
$characterSet :
Character set to use.
Create an ASCII version of an image.
luminanceAreaAverage(string $img, integer $x1, integer $y1, integer $x2, integer $y2) : integer
Get the luminance from a region of an image using average color value.
string | $img | the image. |
integer | $x1 | the area to get pixels from. |
integer | $y1 | the area to get pixels from. |
integer | $x2 | the area to get pixels from. |
integer | $y2 | the area to get pixels from. |
$luminance with a value between 0 and 100.