diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-19 22:48:22 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-10-18 01:53:39 +0200 |
commit | 209d4220d53bce6f4ac4d69a2781e98f47e17710 (patch) | |
tree | 623028aca47f2566c23ea9a9eb0512ef686dc530 /ext/gd/php_gd.h | |
parent | 932c20fb8d7d1b94c1615c8f0cb958f67bc24c53 (diff) | |
download | php-git-209d4220d53bce6f4ac4d69a2781e98f47e17710.tar.gz |
Add PHP bindings for setting and getting the image resolution
We expose the image resolution related GD functionality to userland
by introducing `imageresolution()` as getter/setter. Given only the
image argument, it returns the current resolution as indexed array.
Given only a second argument, it sets the horizontal and vertical
resolution to this value. Given three arguments, it sets the horizontal
and vertical resolution to the given arguments, respectively.
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r-- | ext/gd/php_gd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index 19e7063d9c..3363283e9d 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -198,6 +198,8 @@ PHP_FUNCTION(imagexbm); PHP_FUNCTION(imagefilter); PHP_FUNCTION(imageconvolution); +PHP_FUNCTION(imageresolution); + PHP_GD_API int phpi_get_le_gd(void); #else |