1. Computing & Technology

Discuss in my forum

Imagecreatetruecolor () PHP Function

By , About.com Guide

Definition: The imagecreatetruecolor () function is used in PHP to create a new true color image using the GD Library. It's two parameters are the width and height of the image you are creating.
Also Known As: Image Create True Color, PHP Image Create True Color
Examples:
<?php header ("Content-type: image/png"); 
 $handle = imagecreatetruecolor (130, 50) or die ("Cannot Create image"); 
 ImagePng ($handle); 
 ?>

©2012 About.com. All rights reserved.

A part of The New York Times Company.