wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_imagecreatetruecolor › WordPress Function
Da2.9.0
Deprecaton/a
› wp_imagecreatetruecolor ( $width, $height )
| Parametri: (2) |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Creates a new GD image resource with transparency support.
Funzioni correlate: wp_create_term, wp_create_user, wp_image_editor, wpmu_create_user, wp_create_category
Sorgenti
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;
}