wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_imagecreatetruecolor › WordPress Function
Seit2.9.0
Veraltetn/v
› wp_imagecreatetruecolor ( $width, $height )
| Parameter: (2) |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Creates a new GD image resource with transparency support.
Ähnliche Funktionen: wp_create_term, wp_create_user, wp_image_editor, wpmu_create_user, wp_create_category
Quellcode
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;
}