wp_imagecreatetruecolor( int $width, int $height ): resource|GdImage|false

In this article

Creates a new GD image resource with transparency support.

Parameters

$widthintrequired
Image width in pixels.
$heightintrequired
Image height in pixels.

Return

resource|GdImage|false The GD image resource or GdImage instance on success.
False on failure.

Source

	 *
	 * @since 3.5.0
	 *
	 * @param string $output        Adjacent image HTML markup.
	 * @param int    $attachment_id Attachment ID
	 * @param string|int[] $size    Requested image size. Can be any registered image size name, or
	 *                              an array of width and height values in pixels (in that order).
	 * @param string $text          Link text.
	 */
	return apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text );
}

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.