Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_imagecreatetruecolor ›

Da2.9.0
Deprecaton/a
wp_imagecreatetruecolor ( $width, $height )
Parametri: (2)
  • (int) $width Image width in pixels.
    Richiesto:
  • (int) $height Image height in pixels..
    Richiesto:
Ritorna:
  • (resource) The GD image resource.
Definito a:
Codex:

Create new GD image resource with transparency support



Sorgenti

function wp_imagecreatetruecolor( $width, $height ) {
	$img = imagecreatetruecolor( $width, $height );
	if ( is_resource( $img ) && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
		imagealphablending( $img, false );
		imagesavealpha( $img, true );
	}
	return $img;
}