wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_imagecreatetruecolor › WordPress Function
Od2.9.0
Przestarzałyn/a
› wp_imagecreatetruecolor ( $width, $height )
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Creates a new GD image resource with transparency support.
Powiązane Funkcje: wp_create_user, wp_create_term, wp_image_editor, wpmu_create_user, wp_create_category
Źródło
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; }