wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_imagecreatetruecolor › WordPress Function
Desde2.9.0
Obsoleton/a
› wp_imagecreatetruecolor ( $width, $height )
| Parâmetros: (2) |
|
| Retorna: |
|
| Definido em: |
|
| Codex: |
Creates a new GD image resource with transparency support.
Funções relacionadas: wp_create_term, wp_create_user, wp_image_editor, wpmu_create_user, _wp_secrets_retire
Fonte
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;
}