wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_imagecreatetruecolor › WordPress Function
Since2.9.0
Deprecatedn/a
› wp_imagecreatetruecolor ( $width, $height )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: |
Creates a new GD image resource with transparency support.
Related Functions: wp_create_user, wp_create_term, wp_image_editor, wpmu_create_user, wp_create_category
Source
function wp_imagecreatetruecolor( $width, $height ) {
$img = imagecreatetruecolor( $width, $height );
if ( is_gd_image( $img )
&& function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' )
) {
imagealphablending( $img, false );
imagesavealpha( $img, true );
}
return $img;
}