hash); if ($the_name == $the_block->hash) $the_name =''; $bandeau = 50; $marge = 25; $text_border = 20; $width = GRAPH_WIDTH; $height = GRAPH_HEIGHT; // Pour que l'image simple ait les proportions que l'image full $width = $marge + ($width*2) + (2*$text_border); $height = $marge + ($height*2); $img_w = $width; $img_h = $height+(2*$bandeau); // création d'une image plus haute pour inclure bandeaux haut et bas $img = imagecreatetruecolor($img_w, $img_h); $type=2; if (count($the_block->tx)==1) $type = 4; $paramHeader = blockchain::DrawBlockHeaderFooter($the_block, $img, $bandeau); $parametres = []; $parametres['x'] = 0; $parametres['y'] = $bandeau; $parametres['width'] = $width; $parametres['height'] = $height; $parametres['methode'] = 5; $parametres['type'] = $type; $parametres['iterations'] = 200; $parametres['transparent_color'] = $paramHeader[0]; $parametres['background_color'] = $paramHeader[1]; $parametres['font_color'] = $paramHeader[2]; $parametres['fontname'] = $paramHeader[3]; $parametres['font_RGB'] = $paramHeader[4]; $parametres['background_RGB'] = $paramHeader[5]; topisto_spline2::DrawBlock($the_block, $img, $parametres); imagepng($img, DATA_PATH.'/last/'.$the_block->hash.'.png'); imagedestroy($img); ?>