MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
resample.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
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.
15 
16  MagickCore graphic resample methods.
17 */
18 #ifndef MAGICKCORE_RESAMPLE_H
19 #define MAGICKCORE_RESAMPLE_H
20 
21 #include "magick/cache-view.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 /*
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.
31 */
32 typedef enum
33 {
65  SentinelFilter /* a count of all the filters, not a real filter */
67 
68 /*
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.
72 */
73 #define BesselFilter JincFilter
74 
75 typedef struct _ResampleFilter
77 
79  ResamplePixelColor(ResampleFilter *,const double,const double,
84  const VirtualPixelMethod);
85 
89 
90 extern MagickExport void
91  ScaleResampleFilter(ResampleFilter *,const double,const double,const double,
92  const double),
93  SetResampleFilter(ResampleFilter *,const FilterTypes,const double);
94 
95 #if defined(__cplusplus) || defined(c_plusplus)
96 }
97 #endif
98 
99 #endif
VirtualPixelMethod
Definition: cache-view.h:28
MagickBooleanType
Definition: magick-type.h:203
#define MagickExport
Definition: method-attribute.h:80
InterpolatePixelMethod
Definition: pixel.h:32
FilterTypes
Definition: resample.h:33
@ SincFastFilter
Definition: resample.h:49
@ CubicFilter
Definition: resample.h:44
@ BohmanFilter
Definition: resample.h:53
@ RobidouxSharpFilter
Definition: resample.h:61
@ QuadraticFilter
Definition: resample.h:43
@ CatromFilter
Definition: resample.h:45
@ Lanczos2Filter
Definition: resample.h:58
@ KaiserFilter
Definition: resample.h:50
@ HanningFilter
Definition: resample.h:39
@ SplineFilter
Definition: resample.h:63
@ HermiteFilter
Definition: resample.h:38
@ RobidouxFilter
Definition: resample.h:60
@ HammingFilter
Definition: resample.h:40
@ SincFilter
Definition: resample.h:48
@ MitchellFilter
Definition: resample.h:46
@ BlackmanFilter
Definition: resample.h:41
@ WelshFilter
Definition: resample.h:51
@ UndefinedFilter
Definition: resample.h:34
@ CosineFilter
Definition: resample.h:62
@ GaussianFilter
Definition: resample.h:42
@ PointFilter
Definition: resample.h:35
@ BartlettFilter
Definition: resample.h:54
@ Lanczos2SharpFilter
Definition: resample.h:59
@ TriangleFilter
Definition: resample.h:37
@ LanczosSharpFilter
Definition: resample.h:57
@ LanczosFilter
Definition: resample.h:56
@ BoxFilter
Definition: resample.h:36
@ LanczosRadiusFilter
Definition: resample.h:64
@ JincFilter
Definition: resample.h:47
@ LagrangeFilter
Definition: resample.h:55
@ SentinelFilter
Definition: resample.h:65
@ ParzenFilter
Definition: resample.h:52
MagickExport ResampleFilter * DestroyResampleFilter(ResampleFilter *)
Definition: resample.c:269
MagickExport MagickBooleanType ResamplePixelColor(ResampleFilter *, const double, const double, MagickPixelPacket *)
MagickExport void SetResampleFilter(ResampleFilter *, const FilterTypes, const double)
Definition: resample.c:1255
MagickExport MagickBooleanType SetResampleFilterVirtualPixelMethod(ResampleFilter *, const VirtualPixelMethod)
Definition: resample.c:1457
MagickExport ResampleFilter * AcquireResampleFilter(const Image *, ExceptionInfo *)
MagickExport MagickBooleanType SetResampleFilterInterpolateMethod(ResampleFilter *, const InterpolatePixelMethod)
MagickExport void ScaleResampleFilter(ResampleFilter *, const double, const double, const double, const double)
Definition: exception.h:103
Definition: image.h:153
Definition: pixel.h:105
Definition: resample.c:92