1024 | | function wp_imagecreatetruecolor($width, $height) { |
1025 | | $img = imagecreatetruecolor($width, $height); |
1026 | | if ( is_resource($img) && function_exists('imagealphablending') && function_exists('imagesavealpha') ) { |
1027 | | imagealphablending($img, false); |
1028 | | imagesavealpha($img, true); |
| 1024 | function wp_imagecreatetruecolor( $width, $height ) { |
| 1025 | $img = imagecreatetruecolor( $width, $height ); |
| 1026 | if ( is_resource( $img ) && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) { |
| 1027 | if ( function_exists( 'imagecolortransparent' ) && function_exists( 'imagecolorallocatealpha' ) ) |
| 1028 | imagecolortransparent( $img, imagecolorallocatealpha( $img, 0, 0, 0, 127 ) ); |
| 1029 | imagealphablending( $img, false ); |
| 1030 | imagesavealpha( $img, true ); |