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
61 UndefinedPixelTrait = 0x000000,
62 ActivePixelTrait = 0x000001,
63 BlendPixelTrait = 0x000002
66 typedef struct _PixelComponentMap
75 typedef struct _DoublePixelPacket
85 typedef struct _LongPixelPacket
95 typedef struct _PixelInfo
121 typedef struct _PixelPacket
135 typedef struct _CacheView
138 extern MagickExport MagickBooleanType
139 ExportImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
140 const size_t,const char *,const StorageType,void *,ExceptionInfo *),
141 ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
142 const size_t,const char *,const StorageType,const void *),
143 InterpolatePixelInfo(const Image *,const CacheView_ *,
144 const InterpolatePixelMethod,const double,const double,PixelInfo *,
146 IsFuzzyEquivalencePixel(const Image *,const Quantum *,
148 IsFuzzyEquivalencePixelInfo(const PixelInfo *,const PixelInfo *),
149 IsFuzzyEquivalencePixelPacket(const Image *,const PixelPacket *,
150 const PixelPacket *);
152 extern MagickExport PixelComponentMap
153 *AcquirePixelComponentMap(void),
154 *ClonePixelComponentMap(const PixelComponentMap *),
155 *DestroyPixelComponentMap(PixelComponentMap *);
157 extern MagickExport PixelInfo
158 *ClonePixelInfo(const PixelInfo *);
160 extern MagickExport void
161 StandardPixelComponentMap(Image *),
162 GetPixelInfo(const Image *,PixelInfo *),
163 SetPixelComponentMap(Image *,const ChannelType);
165 #if defined(__cplusplus) || defined(c_plusplus)