2 Copyright 1999-2011 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 image constitute methods.
18 #ifndef _MAGICKCORE_PIXEL_H
19 #define _MAGICKCORE_PIXEL_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include <MagickCore/colorspace.h>
26 #include <MagickCore/constitute.h>
30 UndefinedInterpolatePixel,
31 AverageInterpolatePixel,
32 BicubicInterpolatePixel,
33 BilinearInterpolatePixel,
34 FilterInterpolatePixel,
35 IntegerInterpolatePixel,
37 NearestNeighborInterpolatePixel,
38 SplineInterpolatePixel
39 } InterpolatePixelMethod;
43 RedPixelComponent = 0,
44 CyanPixelComponent = 0,
45 GrayPixelComponent = 0,
47 GreenPixelComponent = 1,
48 MagentaPixelComponent = 1,
50 BluePixelComponent = 2,
51 YellowPixelComponent = 2,
53 AlphaPixelComponent = 3,
54 BlackPixelComponent = 4,
55 IndexPixelComponent = 4,
56 MaskPixelComponent = 5
67 typedef struct _PixelComponentMap
76 typedef struct _DoublePixelPacket
86 typedef struct _LongPixelPacket
96 typedef struct _PixelInfo
122 typedef struct _PixelPacket
136 typedef struct _CacheView
139 extern MagickExport MagickBooleanType
140 ExportImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
141 const size_t,const char *,const StorageType,void *,ExceptionInfo *),
142 ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
143 const size_t,const char *,const StorageType,const void *),
144 InterpolatePixelInfo(const Image *,const CacheView_ *,
145 const InterpolatePixelMethod,const double,const double,PixelInfo *,
147 IsFuzzyEquivalencePixel(const Image *,const Quantum *,
149 IsFuzzyEquivalencePixelInfo(const PixelInfo *,const PixelInfo *),
150 IsFuzzyEquivalencePixelPacket(const Image *,const PixelPacket *,
151 const PixelPacket *);
153 extern MagickExport PixelComponentMap
154 *AcquirePixelComponentMap(void),
155 *ClonePixelComponentMap(const PixelComponentMap *),
156 *DestroyPixelComponentMap(PixelComponentMap *);
158 extern MagickExport PixelInfo
159 *ClonePixelInfo(const PixelInfo *);
161 extern MagickExport void
162 DefinePixelComponentMap(Image *),
163 GetPixelInfo(const Image *,PixelInfo *);
165 #if defined(__cplusplus) || defined(c_plusplus)