PHP/Graphics Image/imagesetpixel
Версия от 13:37, 26 мая 2010; (обсуждение)
Points and Lines
<source lang="html4strict">
<?php
$width = 255; $height = 255; $image = imagecreatetruecolor($width, $height); for ($i = 0; $i <= $width; ++$i) { for ($j = 0; $j <= $height; ++$j) { $col = imagecolorallocate($image, 255, $i, $j); imagesetpixel($image, $i, $j, $col); } } header("Content-type: image/png"); imagepng($image); imagedestroy($image);
?>
</source>