$color = imagecolorallocatealpha($image, $color[0], $color[1], $color[2], 0);
imagettftext($image, 8, 28, ($head[0]-1) * $this->size + 10, $this->header_height-2, $color, realpath(dirname(__FILE__)."/../")."/res/arial.ttf", $name);
}
$color = imagecolorallocatealpha($image, $color[0], $color[1], $color[2], 0);
imagettftext($image, 8, 28, ($head[0]-1) * $this->size + 10, $this->header_height-2, $color, realpath(dirname(__FILE__)."/../")."/res/arial.ttf", $name);
}