<? $orange=imagecolorallocate($img,220,210,60); $white=imagecolorallocate($img,225,225,225); $black=imagecolorallocate($img,0,0,0); imagefill($img,0,0,$black); ?>
Cytat
Co jest nie tak?
<? $orange=imagecolorallocate($img,220,210,60); $white=imagecolorallocate($img,225,225,225); $black=imagecolorallocate($img,0,0,0); imagefill($img,0,0,$black); ?>
<?php $resImg = imagecreatetruecolor( 100, 200 ); // wypadałoby stworzyć obrazek! $intBlack = imagecolorallocate( $resImg, 0, 0, 0 ); imagefill( $resImg, 0, 0, $intBlack ); imagepng( $resImg ); // dać go na ekran imagedestroy( $resImg ); // i wywalić z pamięci ?>
<img src="image.php" alt="" />
<img src="graphic.php">
<? $resImg = imagecreatetruecolor( 100, 200 ); // wypadałoby stworzyć obrazek! $intBlack = imagecolorallocate( $resImg, 0, 0, 0 ); imagefill( $resImg, 0, 0, $intBlack ); imagepng( $resImg ); // dać go na ekran imagedestroy( $resImg ); // i wywalić z pamięci ?>