wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_imagecreatetruecolor › WordPress Function

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|GdImage|false) The GD image resource or GdImage instance on success. False on failure.
Definito a:
Codex:

Creates a new GD image resource with transparency support.



Sorgenti

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;
}