1. Home
  2. Computing & Technology
  3. PHP / MySQL

Imagecreatetruecolor () PHP Function

By Angela Bradley, About.com

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

Explore PHP / MySQL

More from About.com

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. Create Image - Imagecreatetruecolor - Create Image PHP

©2008 About.com, a part of The New York Times Company.

All rights reserved.