All pastes #608126 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-08 02:17 UTC
rendered paste body
function imagegetpixel($im,$x,$y)
{
	$color = array();
	$rgb = imagecolorat($im, $x, $y);
	$color['r'] = ($rgb >> 16) & 0xFF;
	$color['g'] = ($rgb >> 8) & 0xFF;
	$color['b'] = $rgb & 0xFF;
	return $color;
}