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>
28 #define MaxPixelChannels 32
33 UndefinedInterpolatePixel,
34 AverageInterpolatePixel,
35 BicubicInterpolatePixel,
36 BilinearInterpolatePixel,
37 FilterInterpolatePixel,
38 IntegerInterpolatePixel,
40 NearestNeighborInterpolatePixel,
41 SplineInterpolatePixel
42 } PixelInterpolateMethod;
46 UndefinedPixelChannel = 0,
51 GreenPixelChannel = 1,
52 MagentaPixelChannel = 1,
55 YellowPixelChannel = 2,
57 AlphaPixelChannel = 3,
58 BlackPixelChannel = 4,
59 IndexPixelChannel = 4,
61 IntensityPixelChannel = MaxPixelChannels,
62 CompositePixelChannel = MaxPixelChannels,
63 SyncPixelChannel = MaxPixelChannels+1
68 UndefinedPixelTrait = 0x000000,
69 CopyPixelTrait = 0x000001,
70 UpdatePixelTrait = 0x000002,
71 BlendPixelTrait = 0x000004
74 typedef struct _PixelChannelMap
83 typedef struct _PixelInfo
112 typedef struct _PixelPacket
122 typedef struct _CacheView
125 extern MagickExport ChannelType
126 SetPixelChannelMask(Image *,const ChannelType);
128 extern MagickExport MagickBooleanType
129 ExportImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
130 const size_t,const char *,const StorageType,void *,ExceptionInfo *),
131 ImportImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
132 const size_t,const char *,const StorageType,const void *,ExceptionInfo *),
133 InterpolatePixelChannel(const Image *,const CacheView_ *,
134 const PixelChannel,const PixelInterpolateMethod,const double,const double,
135 double *,ExceptionInfo *),
136 InterpolatePixelChannels(const Image *,const CacheView_ *,const Image *,
137 const PixelInterpolateMethod,const double,const double,Quantum *,
139 InterpolatePixelInfo(const Image *,const CacheView_ *,
140 const PixelInterpolateMethod,const double,const double,PixelInfo *,
142 IsFuzzyEquivalencePixel(const Image *,const Quantum *,
144 IsFuzzyEquivalencePixelInfo(const PixelInfo *,const PixelInfo *);
146 extern MagickExport PixelChannelMap
147 *AcquirePixelChannelMap(void),
148 *ClonePixelChannelMap(PixelChannelMap *),
149 *DestroyPixelChannelMap(PixelChannelMap *);
151 extern MagickExport PixelInfo
152 *ClonePixelInfo(const PixelInfo *);
154 extern MagickExport void
155 InitializePixelChannelMap(Image *),
156 GetPixelInfo(const Image *,PixelInfo *),
157 SetPixelChannelMap(Image *,const ChannelType);
159 #if defined(__cplusplus) || defined(c_plusplus)