Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:11:37
2

PHP imagecreate

Tuesday, February 10, 15, 12:02:30, 3 Yaers Ago Via wain, Hits: 2923
imagecreate() returns an image identifier representing a blank image of specified size.
Example:

Code:
<?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);
?>

Sign In

Sponsor

Related

PHPBB3 Shoutbox

Vesion: 1.1. Released: 08/08/10, Licence GNU, Price: Free

Upload and Resize an Image with PHP

Tutorial - How to upload and resize image with PHP

Upload Image with PHP [Example2]

[Example2] Tutorial - How to upload and resize image with PHP

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Link Base Pro :: Free Link Index Script

This script allows you to manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf

Imageline

Draws a line between the two given points.

View content in a zip file with PHP

List all files in a zip archive with PHP
About Author

cilipe

Date Registered: Mon, Feb 16, 15
Last Time Online: Wed, Feb 18, 15
So far has created 2 entries.
cilipe
This author has not yet filled in any details.