color.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.
00006   obtain a copy of the License at
00007   
00008     http://www.imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore image color methods.
00017 */
00018 #ifndef _MAGICKCORE_COLOR_H
00019 #define _MAGICKCORE_COLOR_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 #include <magick/pixel.h>
00026 #include <magick/exception.h>
00027 
00028 typedef enum
00029 {
00030   UndefinedCompliance,
00031   NoCompliance = 0x0000,
00032   SVGCompliance = 0x0001,
00033   X11Compliance = 0x0002,
00034   XPMCompliance = 0x0004,
00035   AllCompliance = 0x7fffffff
00036 } ComplianceType;
00037 
00038 typedef struct _ColorInfo
00039 {
00040   char
00041     *path,
00042     *name;
00043 
00044   ComplianceType
00045     compliance;
00046 
00047   MagickPixelPacket
00048     color;
00049 
00050   MagickBooleanType
00051     exempt,
00052     stealth;
00053 
00054   struct _ColorInfo
00055     *previous,
00056     *next;  /* deprecated, use GetColorInfoList() */
00057 
00058   unsigned long
00059     signature;
00060 } ColorInfo;
00061 
00062 typedef struct _ErrorInfo
00063 {
00064   double
00065     mean_error_per_pixel,
00066     normalized_mean_error,
00067     normalized_maximum_error;
00068 } ErrorInfo;
00069 
00070 extern MagickExport char
00071   **GetColorList(const char *,unsigned long *,ExceptionInfo *);
00072 
00073 extern MagickExport const ColorInfo
00074   *GetColorInfo(const char *,ExceptionInfo *),
00075   **GetColorInfoList(const char *,unsigned long *,ExceptionInfo *);
00076 
00077 extern MagickExport MagickBooleanType
00078   ColorComponentGenesis(void),
00079   IsColorSimilar(const Image *,const PixelPacket *,const PixelPacket *),
00080   IsGrayImage(const Image *,ExceptionInfo *),
00081   IsImageSimilar(const Image *,const Image *,long *x,long *y,ExceptionInfo *),
00082   IsMagickColorSimilar(const MagickPixelPacket *,const MagickPixelPacket *),
00083   IsMonochromeImage(const Image *,ExceptionInfo *),
00084   IsOpacitySimilar(const Image *,const PixelPacket *,const PixelPacket *),
00085   IsOpaqueImage(const Image *,ExceptionInfo *),
00086   ListColorInfo(FILE *,ExceptionInfo *),
00087   QueryColorDatabase(const char *,PixelPacket *,ExceptionInfo *),
00088   QueryColorname(const Image *,const PixelPacket *,const ComplianceType,char *,
00089     ExceptionInfo *),
00090   QueryMagickColor(const char *,MagickPixelPacket *,ExceptionInfo *),
00091   QueryMagickColorname(const Image *,const MagickPixelPacket *,
00092     const ComplianceType,char *,ExceptionInfo *);
00093 
00094 extern MagickExport void
00095   ColorComponentTerminus(void),
00096   ConcatenateColorComponent(const MagickPixelPacket *,const ChannelType,
00097     const ComplianceType,char *),
00098   GetColorTuple(const MagickPixelPacket *,const MagickBooleanType,char *);
00099 
00100 #if defined(__cplusplus) || defined(c_plusplus)
00101 }
00102 #endif
00103 
00104 #endif

Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1