|
MagickCore
6.7.5
|
00001 /* 00002 Copyright 1999-2012 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 <MagickCore/pixel.h> 00026 #include <MagickCore/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 PixelInfo 00048 color; 00049 00050 MagickBooleanType 00051 exempt, 00052 stealth; 00053 00054 size_t 00055 signature; 00056 } ColorInfo; 00057 00058 typedef struct _ErrorInfo 00059 { 00060 double 00061 mean_error_per_pixel, 00062 normalized_mean_error, 00063 normalized_maximum_error; 00064 } ErrorInfo; 00065 00066 extern MagickExport char 00067 **GetColorList(const char *,size_t *,ExceptionInfo *); 00068 00069 extern MagickExport const ColorInfo 00070 *GetColorInfo(const char *,ExceptionInfo *), 00071 **GetColorInfoList(const char *,size_t *,ExceptionInfo *); 00072 00073 extern MagickExport MagickBooleanType 00074 IsEquivalentAlpha(const Image *,const PixelInfo *,const PixelInfo *), 00075 IsEquivalentImage(const Image *,const Image *,ssize_t *x,ssize_t *y, 00076 ExceptionInfo *), 00077 ListColorInfo(FILE *,ExceptionInfo *), 00078 QueryColorCompliance(const char *,const ComplianceType,PixelInfo *, 00079 ExceptionInfo *), 00080 QueryColorname(const Image *,const PixelInfo *,const ComplianceType, 00081 char *,ExceptionInfo *); 00082 00083 extern MagickExport void 00084 ConcatenateColorComponent(const PixelInfo *,const PixelChannel, 00085 const ComplianceType,char *), 00086 GetColorTuple(const PixelInfo *,const MagickBooleanType,char *); 00087 00088 #if defined(__cplusplus) || defined(c_plusplus) 00089 } 00090 #endif 00091 00092 #endif