Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_imagecreatetruecolor [ WordPress Function ]

wp_imagecreatetruecolor ( $width, $height )
Parameters:
  • (int) $width Image width
  • (int) $height Image height
Returns:
  • (image) resource
Defined at:



Create new GD image resource with transparency support

Source


<?php
function wp_imagecreatetruecolor($width$height) {
    
$img imagecreatetruecolor($width$height);
    if ( 
is_resource($img) && function_exists('imagealphablending') && function_exists('imagesavealpha') ) {
        
imagealphablending($imgfalse);
        
imagesavealpha($imgtrue);
    }
    return 
$img;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics