php Form.net

Free PHP forms, scripts, resources and tutorials.

Imagecreate

Example:
imagecreate() returns an image identifier representing a blank image of specified size.
imagecreate

<?php
header("Content-type: image/png");
//create a new palette based image (350(width), 30(height))
$im = imagecreate(350, 30);
//background color
$background = imagecolorallocate($im, 255, 250, 205);
//text color
$color = imagecolorallocate($im, 050, 050, 050);
//imagestring($im, 2(font size), 5(margin-left), 18(margin-top)
imagestring($im, 2, 15, 8, "PHP is an open-source server-side scripting language.", $color);
//imagepng - output image to the browser
imagepng($im);
imagedestroy($im);
?>

Comments


Add a Comment

Name:


Comment:




Sponsors



Google Meta Tags Generator Online
Create your own meta tags using our free code generator.

BuzzBoost Css Generator Online
Free Google BuzzBoost CSS Style Generator Online

Text Ads Generator
Create Your Own HTML Ad Using Our Free HTML Editor

Link Style Generator
Free CSS Style Sheet Generator for Links

CopyRight phpForm.net