Definition:
function wp_imagecreatetruecolor($width, $height) {}
Create new GD image resource with transparency support
Parameters
- int $width: Image width
- int $height: Image height
Return values
returns:resource
Source code
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;
}
3771

February 12, 2011 


No comments yet... Be the first to leave a reply!