WPDev.one
Core Function
View Source on Trac ↗

wp_imagecreatetruecolor()

wp_imagecreatetruecolor( mixed $width, mixed $height )

Creates a new GD image resource with transparency support.

Parameters 2 required

Name / Type Description
$width
int

Image width in pixels.

Required
$height
int

Image height in pixels.

Required

Return Value

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

Function Information

Since Version
2.9.0
Source File
wp-includes/media.php
Advertisement