1. Computing & Technology

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

©2012 About.com. All rights reserved.

A part of The New York Times Company.