This commit is contained in:
2018-10-31 10:06:43 +01:00
parent e121c6f6dd
commit b3ad46d98a
39 changed files with 1757 additions and 1116 deletions

View File

@@ -51,7 +51,12 @@ $img_h = $height+(2*$bandeau);
// création d'une image plus haute pour inclure bandeaux haut et bas
$img = imagecreatetruecolor($img_w, $img_h);
blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau);
$paramHeader = blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau);
imagefilledrectangle($img, 0, $bandeau, $width, $bandeau + $height, $paramHeader[2]);
imagefilledrectangle($img, 0, 0, 0, $img_h, $paramHeader[2]);
imagefilledrectangle($img, $img_w-1, 0, $img_w-1, $img_h, $paramHeader[2]);
imagepng($img, DATA_PATH.'/hashes/'.$the_block->hash.'.png');