wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_imagecreatetruecolor › WordPress Function
Depuis2.9.0
Dépréciéen/a
› wp_imagecreatetruecolor ( $width, $height )
Paramètres: (2) |
|
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Creates a new GD image resource with transparency support.
Fonctions en relation: 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; }