MagickCore
7.1.2-29
Convert, Edit, Or Compose Bitmap Images
Toggle main menu visibility
Loading...
Searching...
No Matches
resample.h
1
/*
2
Copyright @ 1999 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/license/
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 "MagickCore/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
{
34
UndefinedFilter,
35
PointFilter,
36
BoxFilter,
37
TriangleFilter,
38
HermiteFilter,
39
HannFilter,
40
HammingFilter,
41
BlackmanFilter,
42
GaussianFilter,
43
QuadraticFilter,
44
CubicFilter,
45
CatromFilter,
46
MitchellFilter,
47
JincFilter,
48
SincFilter,
49
SincFastFilter,
50
KaiserFilter,
51
WelchFilter,
52
ParzenFilter,
53
BohmanFilter,
54
BartlettFilter,
55
LagrangeFilter,
56
LanczosFilter,
57
LanczosSharpFilter,
58
Lanczos2Filter,
59
Lanczos2SharpFilter,
60
RobidouxFilter,
61
RobidouxSharpFilter,
62
CosineFilter,
63
SplineFilter,
64
LanczosRadiusFilter,
65
CubicSplineFilter,
66
MagicKernelSharp2013Filter,
67
MagicKernelSharp2021Filter,
68
SentinelFilter
/* a count of all the filters, not a real filter */
69
} FilterType;
70
71
/*
72
Backward compatibility for the more correctly named Jinc Filter. Original
73
source of this filter is from "zoom" but it refers to a reference by Pratt,
74
who does not actually name the filter.
75
76
also miss-spellings of common filters
77
*/
78
#define BesselFilter JincFilter
79
#define WelshFilter WelchFilter
80
#define HanningFilter HannFilter
81
82
typedef
struct
_ResampleFilter
83
ResampleFilter;
84
85
extern
MagickExport MagickBooleanType
86
ResamplePixelColor(ResampleFilter *,
const
double
,
const
double
,
87
PixelInfo *,ExceptionInfo *),
88
SetResampleFilterInterpolateMethod(ResampleFilter *,
89
const
PixelInterpolateMethod),
90
SetResampleFilterVirtualPixelMethod(ResampleFilter *,
91
const
VirtualPixelMethod);
92
93
extern
MagickExport ResampleFilter
94
*AcquireResampleFilter(
const
Image *,ExceptionInfo *),
95
*DestroyResampleFilter(ResampleFilter *);
96
97
extern
MagickExport
void
98
ScaleResampleFilter(ResampleFilter *,
const
double
,
const
double
,
const
double
,
99
const
double
),
100
SetResampleFilter(ResampleFilter *,
const
FilterType);
101
102
#if defined(__cplusplus) || defined(c_plusplus)
103
}
104
#endif
105
106
#endif
_ResampleFilter
Definition
resample.c:94
MagickCore
resample.h
Generated by
1.17.0