mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
Fixed missing ifdef around function.
Apparently the stub generator is now producing different output so the change is huge.
This commit is contained in:
+2
-2
@@ -203,7 +203,7 @@ class Imagick
|
||||
|
||||
public function clutImage(Imagick $lookup_table, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
|
||||
|
||||
#if MagickLibVersion > 0x700
|
||||
#if MagickLibVersion >= 0x700
|
||||
public function clutImageWithInterpolate(
|
||||
Imagick $lookup_table,
|
||||
int $pixel_interpolate_method // PixelInterpolateMethod
|
||||
@@ -1253,7 +1253,7 @@ proto bool Imagick::setImageBluePrimary(float x, float y, float z) */
|
||||
// public function key(): int {}
|
||||
//
|
||||
//# endif
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
/** @alias Imagick::nextImage
|
||||
* @tentative-return-type
|
||||
|
||||
+3
-15
@@ -140,27 +140,15 @@ ZEND_METHOD(ImagickKernel, separate);
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
static const zend_function_entry class_ImagickKernel_methods[] = {
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, addKernel, arginfo_class_ImagickKernel_addKernel, ZEND_ACC_PUBLIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, addUnityKernel, arginfo_class_ImagickKernel_addUnityKernel, ZEND_ACC_PUBLIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, fromBuiltin, arginfo_class_ImagickKernel_fromBuiltin, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, fromMatrix, arginfo_class_ImagickKernel_fromMatrix, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, getMatrix, arginfo_class_ImagickKernel_getMatrix, ZEND_ACC_PUBLIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, scale, arginfo_class_ImagickKernel_scale, ZEND_ACC_PUBLIC)
|
||||
#endif
|
||||
#if defined(IMAGICK_WITH_KERNEL)
|
||||
ZEND_ME(ImagickKernel, separate, arginfo_class_ImagickKernel_separate, ZEND_ACC_PUBLIC)
|
||||
#endif
|
||||
ZEND_FE_END
|
||||
};
|
||||
};
|
||||
#endif
|
||||
+4642
-654
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1393,7 +1393,7 @@ PHP_METHOD(Imagick, clutImage)
|
||||
/* }}} */
|
||||
|
||||
|
||||
|
||||
#if MagickLibVersion >= 0x700
|
||||
/* {{{ proto Imagick Imagick::clutImageWithInterpolate(Imagick lookup, int pixel_interpolate_method)
|
||||
Replaces colors in the image from a color lookup table.
|
||||
*/
|
||||
@@ -1431,7 +1431,7 @@ PHP_METHOD(Imagick, clutImageWithInterpolate)
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#endif
|
||||
|
||||
/* {{{ proto Imagick Imagick::getImageProperties([string pattern, bool values] )
|
||||
Returns all the property names that match the specified pattern
|
||||
|
||||
@@ -45,7 +45,9 @@ $gradient->setImageFormat('png');
|
||||
|
||||
$imagick->setImageFormat('png');
|
||||
|
||||
$imagick->setInterpolateMethod(Imagick::INTERPOLATE_BILINEAR);
|
||||
// This test is for IM < 7 so setInterpolate not available
|
||||
// Which probably means the clutImage method isn't usuable...
|
||||
//$imagick->setInterpolateMethod(Imagick::INTERPOLATE_BILINEAR);
|
||||
$imagick->clutImage($gradient);
|
||||
|
||||
$bytes = $imagick->getImageBlob();
|
||||
|
||||
Reference in New Issue
Block a user