From f00bdd964cc3ef18cf7c16bfe09deeaafe035dce Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 20 May 2018 20:03:58 +0200 Subject: Update the headers for Imagemagick 6.9.9 --- dmagick/c/threshold.d | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'dmagick/c/threshold.d') diff --git a/dmagick/c/threshold.d b/dmagick/c/threshold.d index 6b2052b..464f90e 100644 --- a/dmagick/c/threshold.d +++ b/dmagick/c/threshold.d @@ -11,6 +11,17 @@ alias ptrdiff_t ssize_t; extern(C) { + static if ( MagickLibVersion >= 0x699 ) + { + enum AutoThresholdMethod + { + UndefinedThresholdMethod, + KapurThresholdMethod, + OTSUThresholdMethod, + TriangleThresholdMethod + } + } + struct ThresholdMap {} Image* AdaptiveThresholdImage(const(Image)*, const size_t, const size_t, const ssize_t, ExceptionInfo*); @@ -18,6 +29,11 @@ extern(C) ThresholdMap* DestroyThresholdMap(ThresholdMap*); ThresholdMap* GetThresholdMap(const(char)*, ExceptionInfo*); + static if ( MagickLibVersion >= 0x699 ) + { + MagickBooleanType AutoThresholdImage(Image*, const AutoThresholdMethod, ExceptionInfo*); + } + MagickBooleanType BilevelImage(Image*, const double); MagickBooleanType BilevelImageChannel(Image*, const ChannelType, const double); MagickBooleanType BlackThresholdImage(Image*, const(char)*); -- cgit v1.2.3