Lines Matching full:image
3 * RRDGraph Plugin: Error image generator
12 * Static class to create an image containing an error message.
27 * Create and output an image containing the given error message.
29 * The image size will be automatically determined in a way that all text is visible.
31 …e of the error message. This is rendered with a bold typeface on the first row of the output image.
32 …ssage Error message. This is rendered with a normal typeface on the second row of the output image.
41 $image = imagecreatetruecolor($width, $height);
42 $cBackground = imagecolorallocate($image, 255, 255, 255);
43 $cBorder = imagecolorallocate($image, 255, 0, 0);
44 $cBlack = imagecolorallocate($image, 0, 0, 0);
46 imagefill($image, 0, 0, $cBorder);
47 …imagefilledrectangle($image, self::BORDER_WIDTH, self::BORDER_WIDTH, $width - self::BORDER_WIDTH -…
50 …imagestring($image, self::TITLE_FONT, self::BORDER_WIDTH + self::BORDER_SPACING, $y, $title, $cBla…
52 … imagestring($image, self::FONT, self::BORDER_WIDTH + self::BORDER_SPACING, $y, $message, $cBlack);
55 header("Content-Type: image/png");
60 //-- Output the image. Create a valid Content-Length-Header via output buffering.
62 imagepng($image);
66 imagedestroy($image);