From c4a9fb376475c631a185a340d0cc6fabd9b3d0e3 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 30 Oct 2011 19:27:13 +0100 Subject: All symbos from the headers used by DMagick should now be documented. --- dmagick/c/effect.d | 73 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 47 insertions(+), 26 deletions(-) (limited to 'dmagick/c/effect.d') diff --git a/dmagick/c/effect.d b/dmagick/c/effect.d index 95795c3..f70ae63 100644 --- a/dmagick/c/effect.d +++ b/dmagick/c/effect.d @@ -45,35 +45,56 @@ extern(C) JPEGPreview /// ditto } - mixin( + version(D_Ddoc) { - string types = "enum StatisticType + /** + * The statistic method to apply. + */ + enum StatisticType { - UndefinedStatistic,"; - - static if ( MagickLibVersion >= 0x670 ) - { - types ~= "GradientStatistic,"; - } - - types ~= " - MaximumStatistic, - MeanStatistic, - MedianStatistic, - MinimumStatistic, - ModeStatistic, - NonpeakStatistic,"; - - static if ( MagickLibVersion >= 0x670 ) + UndefinedStatistic, /// + GradientStatistic, /// Maximum difference in area. + MaximumStatistic, /// Maximum value per channel in neighborhood. + MeanStatistic, /// Average value per channel in neighborhood. + MedianStatistic, /// Median value per channel in neighborhood. + MinimumStatistic, /// Minimum value per channel in neighborhood. + ModeStatistic, /// Mode (most frequent) value per channel in neighborhood. + NonpeakStatistic, /// Value just before or after the median value per channel in neighborhood. + StandardDeviationStatistic /// + } + } + else + { + mixin( + { + string types = "enum StatisticType { - types ~= "StandardDeviationStatistic,"; - } - - types ~= " - }"; - - return types; - }()); + UndefinedStatistic,"; + + static if ( MagickLibVersion >= 0x670 ) + { + types ~= "GradientStatistic,"; + } + + types ~= " + MaximumStatistic, + MeanStatistic, + MedianStatistic, + MinimumStatistic, + ModeStatistic, + NonpeakStatistic,"; + + static if ( MagickLibVersion >= 0x670 ) + { + types ~= "StandardDeviationStatistic,"; + } + + types ~= " + }"; + + return types; + }()); + } Image* AdaptiveBlurImage(const(Image)*, const double, const double, ExceptionInfo*); Image* AdaptiveBlurImageChannel(const(Image)*, const ChannelType, const double, const double, ExceptionInfo*); -- cgit v1.2.3