diff options
Diffstat (limited to 'dmagick/c/threshold.d')
| -rw-r--r-- | dmagick/c/threshold.d | 16 |
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)*); |
