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
64 typedef struct _PixelComponentMap
73 typedef struct _DoublePixelPacket
83 typedef struct _LongPixelPacket
93 typedef struct _PixelInfo
119 typedef struct _PixelPacket
133 typedef struct _CacheView
136 extern MagickExport MagickBooleanType
137 ExportImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
138 const size_t,const char *,const StorageType,void *,ExceptionInfo *),
139 ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
140 const size_t,const char *,const StorageType,const void *),
141 InterpolatePixelInfo(const Image *,const CacheView_ *,
142 const InterpolatePixelMethod,const double,const double,PixelInfo *,
144 IsFuzzyEquivalencePixel(const Image *,const Quantum *,
146 IsFuzzyEquivalencePixelInfo(const PixelInfo *,const PixelInfo *),
147 IsFuzzyEquivalencePixelPacket(const Image *,const PixelPacket *,
148 const PixelPacket *);
150 extern MagickExport PixelComponentMap
151 *AcquirePixelComponentMap(void),
152 *ClonePixelComponentMap(const PixelComponentMap *),
153 *DestroyPixelComponentMap(PixelComponentMap *);
155 extern MagickExport PixelInfo
156 *ClonePixelInfo(const PixelInfo *);
158 extern MagickExport void
159 DefinePixelComponentMap(Image *),
160 GetPixelInfo(const Image *,PixelInfo *);
162 #if defined(__cplusplus) || defined(c_plusplus)