1. Computing

Discuss in my forum

Imagecreate () PHP Function

By , About.com Guide

Definition: The imagecreate () function is used in PHP to create a new palette based image using the GD Library. It's two parameters are width and then height of the image to be created.
Also Known As: Image Create, PHP Image Create
Examples:
<?php header ("Content-type: image/png"); 
 $handle = ImageCreate (130, 50) or die ("Cannot Create image"); 
 $bg_color = ImageColorAllocate ($handle, 255, 0, 0); 
 ImagePng ($handle); 
 ?>
Related Video
How to Create a PHP Calendar
Add a Background Image to a Webpage
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. PHP Functions
  5. Create Image - Imagecreate - Create Image PHP

©2013 About.com. All rights reserved.