читался PhpManyal
пробывался разный изврат типа:
<?
$image = imagecreatetruecolor(200,200);
imagealphablending($image, TRUE);
$blue = imagecolorallocate($image, 0, 0, 0xff);
$white = imagecolorallocate($image, 0xff, 0xff, 0xff);
$t = imagecolorresolvealpha($image, 0xff, 0xff, 0xff, 0xff);
ImageColorTransparent($image, $blue);
$style = array($white, $white, $white, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT);
imagesetstyle($image, $style);
imagefilledrectangle($image, 0, 0, 199, 199, $blue);
imageline($image, 0, 0, 199, 199, IMG_COLOR_STYLED);
// должен быть прозрчный квадрат
for($x=1;$x<100;$x++){
for($y=1;$y<100;$y++){
ImageSetPixel ($image, $x, $y, IMG_COLOR_TRANSPARENT);
}
}
imagepng($image,"test.png");
?>
<BODY style='background:#ff0000'>
<IMG src="test.jpg">
</body>