2 Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore graphic resample methods.
18 #ifndef _MAGICKCORE_RESAMPLE_H
19 #define _MAGICKCORE_RESAMPLE_H
21 #include "MagickCore/cache-view.h"
23 #if defined(__cplusplus) || defined(c_plusplus)
28 WARNING: The order of this table must also match the order of a table
29 located in AcquireResizeFilter() in "resize.c" otherwise the users filter
30 will not match the actual filter that is setup.
65 SentinelFilter /* a count of all the filters, not a real filter */
69 Backward compatibility for the more correctly named Jinc Filter. Original
70 source of this filter is from "zoom" but it refers to a reference by Pratt,
71 who does not actualy name the filter.
73 also miss-spellings of common filters
75 #define BesselFilter JincFilter
76 #define WelshFilter WelchFilter
77 #define HanningFilter HannFilter
79 typedef struct _ResampleFilter
82 extern MagickExport MagickBooleanType
83 ResamplePixelColor(ResampleFilter *,const double,const double,
84 PixelInfo *,ExceptionInfo *),
85 SetResampleFilterInterpolateMethod(ResampleFilter *,
86 const PixelInterpolateMethod),
87 SetResampleFilterVirtualPixelMethod(ResampleFilter *,
88 const VirtualPixelMethod);
90 extern MagickExport ResampleFilter
91 *AcquireResampleFilter(const Image *,ExceptionInfo *),
92 *DestroyResampleFilter(ResampleFilter *);
94 extern MagickExport void
95 ScaleResampleFilter(ResampleFilter *,const double,const double,const double,
97 SetResampleFilter(ResampleFilter *,const FilterTypes);
99 #if defined(__cplusplus) || defined(c_plusplus)