WordPress at a glance
function is not described

wp_imagecreatetruecolor() WP 2.9.0

Create new GD image resource with transparency support

No Hooks.


resource. The GD image resource.


wp_imagecreatetruecolor( $width, $height );
$width(int) (required)
Image width in pixels.
$height(int) (required)
Image height in pixels..

Code of wp imagecreatetruecolor: wp-includes/media.php VER 5.0.3

function wp_imagecreatetruecolor($width, $height) {
	$img = imagecreatetruecolor($width, $height);
	if ( is_resource($img) && function_exists('imagealphablending') && function_exists('imagesavealpha') ) {
		imagealphablending($img, false);
		imagesavealpha($img, true);
	return $img;