summaryrefslogtreecommitdiff
path: root/dmagick/c/threshold.d
diff options
context:
space:
mode:
authorMike Wey2018-05-20 20:03:58 +0200
committerMike Wey2018-05-20 20:03:58 +0200
commitf00bdd964cc3ef18cf7c16bfe09deeaafe035dce (patch)
tree5cd60f79248a11ae0fa38ccd0d5e951efdbd82f1 /dmagick/c/threshold.d
parent39d6a202bf6db2ca7ac080eb76a88d16fc3b7994 (diff)
Update the headers for Imagemagick 6.9.9ImageMagick_6.9.9
Diffstat (limited to 'dmagick/c/threshold.d')
-rw-r--r--dmagick/c/threshold.d16
1 files changed, 16 insertions, 0 deletions
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)*);